Command getdatetime

The command getdatetime is used to get the device date and time.

Parameters

  1. format [string]
    Date format retrieved where:
    • yy: four-digit year
    • y: two-digit year
    • M: two-digit month
    • d: two-digit day
    • h: two-digit hour
    • m: two-digit minute
    • s: two-digit second
  2. returnvariable [string]
    Store the returned date.

Example


In the example above, the command getdatetime retrieves the current date and time which is then displayed on the display.