0
edits
Changes
no edit summary
'''Example:'''
var newDate=ConvertDate(sdate,'@dateformat@');
frm.enddate.value=ConvertDate(edate,"@dateformat@");
</pre>
==Notes==
* When using [[JavaScript]] to populate a date it must be added to the field in the preferred date format of the current user, as the system will automatically convert it to yyyy-mm-dd when the page is saved.