Hi ,
I am getting 9hours variation and it is taking some cannada time and I want to convert it into local time . This is my temporary solution when I selected timezone format(i.e in options) as india it is working fine but when
I changed my timezone to some other country it is giving me variation. can u plz help out the permanent solution in mscrm.
function dateTime() {
var createdon = Xrm.Page.getAttribute("createdon").getValue();
var formType = Xrm.Page.ui.getFormType();
var date = new Date();
if (formType != 1) {
if (createdon != null) {
createdon.setHours(createdon.getHours() + 2);
if (date > createdon) {
Xrm.Page.ui.controls.get("fmc_followupby").setDisabled(true);
}
}
}
}