Page 1 of 1

how to change dateformat of datepicker to dd-Mmm-yyyy (eg. 02-Aug-2014)

Posted: Sat Apr 25, 2015 2:22 pm
by B510

Hello All,

How to change dateformat of datepicker object to dd-Mmm-yyyy (eg. 02-Aug-2014)

Thanks a lot in advance

Regards
Win


how to change dateformat of datepicker to dd-Mmm-yyyy (eg. 02-Aug-2014)

Posted: Sat Apr 25, 2015 9:14 pm
by Illya Stepanov

Hi -

Have you tried method code.toISOString()/code

precodevar d = new Date();
console.log(d.toISOString().replace("T"," ").replace("Z",""));/code/pre
-- this code outputs current date.


how to change dateformat of datepicker to dd-Mmm-yyyy (eg. 02-Aug-2014)

Posted: Sun Apr 26, 2015 2:23 am
by Bruce Stuart

http://www.phpeveryday.com/articles/j...

Per that article ... If you want the date picker object to do it ...you use dd-M-yyyy

Not sure if that helps or not...


how to change dateformat of datepicker to dd-Mmm-yyyy (eg. 02-Aug-2014)

Posted: Sun Apr 26, 2015 5:02 am
by M&M

The below works for me

code
// Remember to change the name of the date picker. I use this code in the page show event
Apperyio("dtpFromDate").datepicker_dataPickerOptions.dateFormat = "dd-M-yy&quot
/code


how to change dateformat of datepicker to dd-Mmm-yyyy (eg. 02-Aug-2014)

Posted: Sun Apr 26, 2015 11:31 pm
by B510

Thanks :)