From WikiChip
Difference between revisions of "mirc/identifiers/$adate"
< mirc‎ | identifiers

Line 1: Line 1:
{{mirc title|$adate Identifier}}'''$adate''' can be used to return the current date in month/day/year format.
+
{{mirc title|$adate Identifier}}'''$adate''' can be used to return the current date in US month/day/year format compared to $date returning day/month/year.
 
 
  
 
== Synopsis ==
 
== Synopsis ==
 
<pre>$adate</pre>
 
<pre>$adate</pre>
 
+
* Note: Same as $date except does not support optional time/format parameters, and returns date in mm/dd/yyyy format.
 
== Parameters ==
 
== Parameters ==
 
None
 
None
Line 10: Line 9:
 
== Example ==
 
== Example ==
 
'''Echo the current date to the active window'''
 
'''Echo the current date to the active window'''
<source lang="mIRC">//echo -a $adate</source>
+
<source lang="mIRC">//echo -a Today in mm/dd/yyyy format is $adate - today in dd/mm/yyyy format is $date
 +
 
 +
 
 +
</source>
  
 
== Compatibility ==
 
== Compatibility ==
Line 16: Line 18:
  
 
== See Also ==
 
== See Also ==
{{mIRC|$date}}
+
{{collist
 
+
|count = 3
{{mIRC|$fulldate}}
+
|style = width: 60%; display: inherit;
{{mIRC identifier list}}
+
|
 
+
* {{mIRC|$asctime}}
[[Category:mIRC identifiers|adate]]
+
* {{mIRC|$date}}
 +
* {{mIRC|$adate}}
 +
* {{mIRC|$time}}
 +
* {{mIRC|$ctime}}
 +
* {{mIRC|$gmt}}
 +
* {{mIRC|$ticks}}
 +
* {{mIRC|$day}}
 +
* {{mIRC|$daylight}}
 +
* {{mIRC|$timezone}}
 +
* {{mIRC|$duration}}
 +
* {{mIRC|$uptime}}
 +
}}

Revision as of 13:46, 22 May 2018

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

Synopsis

$adate
  • Note: Same as $date except does not support optional time/format parameters, and returns date in mm/dd/yyyy format.

Parameters

None

Example

Echo the current date to the active window

//echo -a Today in mm/dd/yyyy format is $adate - today in dd/mm/yyyy format is $date

Compatibility

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


See Also