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

 
(One intermediate revision by the same user not shown)
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''' returns the current date in USA 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
 
 
== 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 ==
 
{{mIRC compatibility|3.9}}
 
{{mIRC compatibility|3.9}}
 
 
== 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|$fulldate}}
 +
* {{mIRC|$time}}
 +
* {{mIRC|$ctime}}
 +
* {{mIRC|$gmt}}
 +
* {{mIRC|$ticks}}
 +
* {{mIRC|$day}}
 +
* {{mIRC|$daylight}}
 +
* {{mIRC|$timezone}}
 +
* {{mIRC|$duration}}
 +
* {{mIRC|$uptime}}
 +
}}

Latest revision as of 18:03, 22 May 2018

$adate returns the current date in USA month/day/year format compared to $date returning day/month/year.

Synopsis[edit]

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

Parameters[edit]

None

Example[edit]

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[edit]

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[edit]