SysUtils.StrToDate('20/11/2012 7:05:14 PM') throws an excpetion. How do I get a TDateTime from that string?
SysUtils.StrToDate(’20/11/2012 7:05:14 PM’) throws an excpetion. How do I get a TDateTime from that
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To avoid this kind of issues you must use the
StrToDateTimemethod passing aTFormatSettingsvalue with the settings of the format of the string to convert.