Skip to main content

Dojo dropdowndatepicker display format

5 replies [Last post]
sdelvalle
Offline
Joined: 2006-11-25
Points: 0

Hi all,

I know I can set the display format in a dojo dropdowndatepicker, is this possible to set this while using jMaki to add this kind of widget?

Thanks in advance.

Sergio Del Valle

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
daviramos
Offline
Joined: 2007-09-04
Points: 0

Please. How I make to change the date of MM/DD/YYYY for DD/MM/YYYY?

carlavmott
Offline
Joined: 2005-02-10
Points: 0

I have not tried this but looks like from the widget.json file you could do
args="{displayFormat : 'DD/MM/yyyy'}".

gmurray71
Offline
Joined: 2003-07-31
Points: 0

We currently don't have a way but I suspect you want a pattern like java.date.Format correct?

Like:

MM/DD/YYYY or

DD/MM/YYYY

sdelvalle
Offline
Joined: 2006-11-25
Points: 0

That's exactly what I want

gmurray71
Offline
Joined: 2003-07-31
Points: 0

I've added this ability for the jMaki .9.5 release which will come out this weekend I hope. Stay tuned.

It was a pretty easy fix thanks to the capability being in Dojo.

The only catch is you need to use yyyy for years (lower case matters), MM for months (upper case matters), and dd (lower case matters).

I've put this explanation in the widget.json so you can see it with the customer and also in the docs.

Thank you for the suggestion.