The way you work with dates in scripts depends on the scripting language you use. The following topics provide detailed information on working with date values and give examples of typical operations over dates.
JavaScript - Working With Date Values
JScript - Working With Date Values
Python - Working With Date Values
VBScript - Working With Date Values