getTodayInfo

Description

Returns an array with the current date, day, month, and year.

Syntax

array getTodayInfo ()



Return value

Expected type: Array
Description:

Array Elements
Key Optional Expected type Description
date no String The current date, in YYYY-MM-DD format
day no String A two-digit integer representing the current day of the month
month no String A two-digit integer representing the current month (01-12)
year no String The four-digit year


Notes

  • Takes the user's time offset into account.
Advertisement: