Get Day of Week

Converts date text or value into a day in the week. This command returns a day from a text or value containing a day. The day is returned as a number between 1 and 7 where 1=Monday, etc. (ISO 8601 compliant). This function is especially useful in combination with the “Time Convert Simulation to Local” function.

  • DateTime - Text or value containing date
  • Day of Week - Returns a value of the day in the week (as below)


This command is available in Simul8 Professional only.


Get Day of Week    gbl_date ,  gbl_dayofweek

This example returns the number of the day (stored in gbl_dayofweek) from a value in the variable (gbl_date).

See Also