Jump to content
Doug Downs

Delphi 12 Android 14

Recommended Posts

Prior to Android 14, I was able to get StrToDateTime to work with AM/PM in the DateTime, i.e. StrToDateTime('02/08/25 6:23:18 AM', DateTime); and it ran fine.

Now when I deploy to an Android14 I get an error "Project.<project name> raised exception class EConvertError with message "2/6/25 10:0:00 PM' is not a valid date and time'. I can enter the datetime as 24-hour time, i.e. '2/6/25 22:00:00 and it converts fine... only when I have AM or PM I get the error. 

 

All help appreciated.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×