Setting Datetime field in MS CRM 2011

If you want to set a datatime field in MS CRM 2011, you can follow below code for the same

//Set current Datetime field in Javascript

var _D=new Date();


 //Set Current datetime in Server side code

DateTime _CurrentDate=DateTime.Now;


 //Set retrieved date using Rest

var  _DateVal = dateReviver(Resultset.DateAttribute); //dateReviver is a function to format date




Leave a comment

Filed under MS CRM 2011

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s