Tuesday, July 17, 2012

Get todays date in SharePoint query compatible format

function GetTodaysDate()
{
var todaysDate = new Date();
var currentMonth=parseInt(todaysDate.getMonth())+1;
return todaysDate.getFullYear()+'-'+currentMonth+'-'+todaysDate.getDate();
}

No comments:

Post a Comment