Difference between revisions of "El DateStr"

From MultiCharts
Jump to navigation Jump to search
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Returns an 8-character numerical string corresponding to the specified date. The string is in the yyyyMMdd format, where yyyy is the four-digit year, MM is the month, and dd is the day of the month.  
+
Returns an 8-character numerical string corresponding to the specified date. The string is in the ''yyyyMMdd'' format, where yyyy is the four-digit year, MM is the month, and dd is the day of the month.  
 
   
 
   
http://www.buyxanaxonlinepill.com/ generic xanax - purchase online generic xanax
+
== Usage ==
 +
<syntaxhighlight>El_DateStr(dd, MM, yyyy)</syntaxhighlight>
  
==== Example ====
+
Where:
<syntaxhighlight>El_DateStr(02,04,2008) will return the string "20080402", corresponding to the specified date
 
of April 2nd, 2008.</syntaxhighlight>
 
  
 +
:'''dd''' - a numerical expression specifying the day of the month.
 +
:'''MM''' - a numerical expression specifying the month.
 +
:'''yyyy''' - a four-digit numerical expression specifying the year.
 +
 +
== Notes ==
 +
* To have more control about the formatting of a date string, use [[FormatDate]].
 +
* Use [[StringToDate]] to convert a date string to a numerical date value.
  
+
== Example ==
 +
<syntaxhighlight>El_DateStr(02, 04, 2008)</syntaxhighlight>
 +
Will return the string "20080402", corresponding to the specified date of April 2nd, 2008.
 
   
 
   
 
[[Category:Date and Time Routines]]
 
[[Category:Date and Time Routines]]

Latest revision as of 13:02, 19 February 2012

Returns an 8-character numerical string corresponding to the specified date. The string is in the yyyyMMdd format, where yyyy is the four-digit year, MM is the month, and dd is the day of the month.

Usage

El_DateStr(dd, MM, yyyy)

Where:

dd - a numerical expression specifying the day of the month.
MM - a numerical expression specifying the month.
yyyy - a four-digit numerical expression specifying the year.

Notes

  • To have more control about the formatting of a date string, use FormatDate.
  • Use StringToDate to convert a date string to a numerical date value.

Example

El_DateStr(02, 04, 2008)

Will return the string "20080402", corresponding to the specified date of April 2nd, 2008.