Skip to content

Input Value Display Format #2564

Closed Answered by Eonasdan
cwolcott asked this question in Q&A
Discussion options

You must be logged in to vote

You can overwrite one of the date functions to display the output however you need it. There's some docs for the plugins where you can see how to do this. https://getdatepicker.com/6/plugins/moment.html

You can either do this globally or per picker. The one you want is dates.formatInput

Also if your locale normally formats your dates that way you could try setting the locale option, e.g.:

localization: {
    locale: 'en-GB'
}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by cwolcott
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants