Home
JavaScript
Interview Question
Sharepoint 2010 , Sharepoint 2013 , Sharepoint 2016 , Office 365
sharepoint 2010, sharepoint 2013 , sharepoint 2016 , office 365
Wednesday, November 25, 2015
Javascript - set Previous Date or Future Date
Previous Date
var CurrentDate=new Date();
var PreviousDate=CurrentDate.setDate(CurrentDate.getDate() - 1);
Future Date
var CurrentDate=new Date();
var FutureDate =CurrentDate.setDate(CurrentDate.getDate() + 1);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment