Skip to content

DatePicker using UK format reverts to US format #436

@mrwrighty

Description

@mrwrighty

I have a DatePicker defined as <datetime:DatePickerField row="7" col="1" hint="tap to select" locale="en_GB" dateFormat="dd/MM/yyyy" id="veddate" class="body1"/>

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions