B510
Posts: 0
Joined: Wed Jun 04, 2014 2:17 pm

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

Hello All,

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

Thanks a lot in advance

Regards
Win

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

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

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.

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

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

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

M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

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

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

Return to “Issues”