It is also possible to use the operating system time (os.time) function, with formatting characters, to extract say the current hour and minutes.
Note 1: Presently, date fields that have been completed by hand, return a date string, in the format yyyymmdd. Prepopulated date elements return a number of seconds date representation.
Note 2: Values are written to date elements in the format dd/mm/yyyy, but when read in script, a date element returns its value in the format yyyymmdd.
The following is a table of the formatting characters that can be used with the os.time() function.