|

Calculate the Day, Month, Year from a Date Output

Description

This model uses a Script element to calculate various components of a date from a given date time or date only output. The outputs of the Script include Year, Month, Day, Julian Day, Hour, Minute, and Second. The Julian Day (GetYMD) is the number of days since midnight on 30 December 1899. 'TheDate' is defined as the current clock time on your computer but you could replace this with any date or datetime output like "StartTime" or a date string in double quotes (e.g. "Dec/04/2014). 

Additional Information

Keywords

year, month, day, julian, hour, minute, second, time, date, string, script

Categories

GoldSim Features & Capabilities, Useful Code Snippets

Experience Level
Beginner
Contact

GoldSim Technology Group

 

Making Better Decisions In An Uncertain World