0

I am trying to get the date to convert to ISO time of half of a year ago, additionally, how can I change it to ISO time while losing the .milisecondZ at the end?

var d = new Date();
var n = d.toISOString();
var n = (n.addDays(-180))
Pig
  • 7,505
  • 3
  • 10
  • 14
  • Probably a duplicate of [*Add +1 to current date*](http://stackoverflow.com/questions/9989382/add-1-to-current-date). Trimming the string is pretty simple too. – RobG Mar 09 '17 at 20:47
  • @RobG, Alright thanks! Can you also help me set the variables for date and collection here? http://stackoverflow.com/questions/42687476/how-to-i-search-using-google-drive-api-using-javascript – Pig Mar 09 '17 at 20:56

0 Answers0