dhtmlx date format in server side is not working

你。 提交于 2019-12-25 05:54:12

问题


In client side:

{type: "calendar", name: "podatet", label: "PO Date To", value: "", dateFormat: "%d-%m-%Y", calendarPosition: "right","skin":"omega",inputWidth:200},   

In server side :

"Wed Dec 05 2012 10:31:00 GMT 0530 (India Standard Time)"

but I want dd/mm/yyyy, why it comes like this even I formatted?


回答1:


Form api allows to access both data as object and date as string. If you are using

myForm.getFormData()

you will get date object, which will look as above string on server side. But if you will use

myForm.getFormData(true)

form will return string formatted according to the dateFormat mask



来源:https://stackoverflow.com/questions/13677474/dhtmlx-date-format-in-server-side-is-not-working

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!