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
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hello All,
How to change dateformat of datepicker object to dd-Mmm-yyyy (eg. 02-Aug-2014)
Thanks a lot in advance
Regards
Win
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.
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...
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"
/code
Thanks ![]()