QuestionQ124

VerifiedData Manipulation

Which expression correctly converts the string variable “DateString”, whose value is “03/03/2023 03:23:11 AM”, to a Date Time variable?

Explanation

A matching .NET DateTime.ParseExact format requires dd/MM/yyyy for the day/month/year date order and hh:mm:ss tt for a 12-hour time with an AM/PM designator. MM denotes month, whereas lowercase mm denotes minutes; HH is a 24-hour clock and does not match the AM/PM representation. Custom date and time format strings

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!