From WikiChip
$date Identifier - mIRC
< mirc‎ | identifiers
Revision as of 14:03, 22 May 2018 by Maroonbells (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

$date can be used to return the current date in day/month/year format.

Synopsis

$date
$date(time[,format])

Parameters

  • time Optional ctime number. Default when not used is the current ctime
  • format Optional format letters same as $asctime

Note: This identifier has identical syntax as $asctime. The only difference is the default displayed time when no format string is used.

Example

Echo today's full date to the active window in dd/mm/yyyy format
//echo -a $date
Echo only the year-month for the specified ctime number
//echo -a $date(1234567890,yyyy-mm)

Compatibility

Added: mIRC v3.5
Added on: 07 Aug 1995
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.

See Also