NativeScript / nativescript-sdk-examples-ng

NativeScript and Angular code samples.
Apache License 2.0
291 stars 295 forks source link

DatePicker using UK format reverts to US format #436

Open mrwrighty opened 4 years ago

mrwrighty commented 4 years ago

I have a DatePicker defined as

I set the date text to display my current date in UK format dd/MM/yyyy and the picker date to the same and this is taken from an SQlite DB where date is stored as a string. However, the dates are getting transformed to US format MM/dd/yyyy when writing the date back as a string.

For example date string in local SQLite DB is 07/01/2021. Setting DatePicker text shows 01/07/2021 even though I have set the format as dd/MM/yyyy.