David Musgrave shows off Working with Dates in Integration Manager VBScript
Working with Dates in Integration Manager VBScript – Developing for Dynamics GP – Site Home – MSDN Blogs
Archived post from 2012. Dynamics GP and the links it points to have changed since; check current documentation before relying on version-specific steps.