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.
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.