I am new to GAS (actually new to coding too)
I got a date string in the format of yyyymmdd (eg. 20140807), how could I turn it to date so that Google apps script can recognize it and later I can do some calculation (mostly to compare with Today as in var today = new Date();
)
Google apps script can't recognize the following correctly:
// string is in the format of yyyymmdd (eg. 20140807)
var pubdate = new Date(string)