Thursday, 12 November 2015

DISPLAY DATETIME FIELD TO CURRENT DATE USING JAVASCRIPT

Display datetime field to current date using javascript



1
2
//set date field to now (works on date and date time fields)
Xrm.Page.data.entity.attributes.get("new_date1").setValue(new Date());

No comments:

Post a Comment