Determine date in the scripts rather than c++