Code:
exp = new Date() oneYearFromNow = exp.getTime() + (365*24*60*60*1000) exp.setTime(oneYearFromNow) gmt = exp.toGMTString()
Clearly this is a daft question the answer to which should be on about page 1 of the book. Yet RTFM has not given me the answer. Sorry, everyone.
Next question; how can I combine 4 lines to 1 to set the variable GMT? Or can't I?
Comment