Day 7: Formatting Data (Dates, Numbers) in MSCRM JavaScript
Ram Prakash
2,285
In this Blog we will see Formatting Data (Dates, Numbers) in MSCRM JavaScript
if (formContext.getAttribute("bosch_destinationdate").getValue() != null){
var getFullYear = formContext.getAttribute("bosch_destinationdate").getValue().getFullYear();
var getDate = formContext.getAttribute("bosch_destinationdate").getValue().getDate();
var getMonth = formContext.getAttribute("bosch_destinationdate").getValue().getMonth() + 1;
formContext.getAttribute("bosch_getnumbersfromdestinationdate").setValue(getFullYear + "-" + getDate + "-" + getMonth);
}
This was originally posted here.
*This post is locked for comments