Difference between revisions of "CurrentDate"

From MultiCharts
Jump to navigation Jump to search
m
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Returns a numerical value indicating the computer's current date. The date is indicated in the YYYMMdd format, where YYY is the number of years since 1900, MM is the month, and dd is the day of the month.  
+
Returns a numerical value indicating the computer's current date. The date is indicated in the ''YYYMMdd'' format, where YYY is the number of years since 1900, MM is the month, and dd is the day of the month.  
  
 
For example, the value returned for the date of October 30th, 2008 will be 1081030.  
 
For example, the value returned for the date of October 30th, 2008 will be 1081030.  
 
   
 
   
==== Usage ====
+
== Usage ==
[[CurrentDate]]
+
<syntaxhighlight>CurrentDate</syntaxhighlight>
 
==== Example ====
 
<syntaxhighlight>CurrentDate]]  will return a value of 1081030 for October 30th, 2008</syntaxhighlight>  
 
 
 
 
 
 
 
 
  
 +
== Notes ==
 +
* Use [[Date]] to get the date of a bar.
  
 +
== Example ==
 +
<syntaxhighlight>Print(CurrentDate);</syntaxhighlight>
  
 +
Will return a value of 1081030 if the current date is October 30th, 2008.
  
 +
== Related articles ==
 +
* [[Outputting_Dates_in_EasyLanguage|Outputting Dates in EasyLanguage]]
  
 
[[Category:Date and Time Routines]]
 
[[Category:Date and Time Routines]]

Latest revision as of 12:23, 19 February 2012

Returns a numerical value indicating the computer's current date. The date is indicated in the YYYMMdd format, where YYY is the number of years since 1900, MM is the month, and dd is the day of the month.

For example, the value returned for the date of October 30th, 2008 will be 1081030.

Usage

CurrentDate

Notes

  • Use Date to get the date of a bar.

Example

Print(CurrentDate);

Will return a value of 1081030 if the current date is October 30th, 2008.

Related articles