Changes

Jump to navigation Jump to search

Year

449 bytes added, 05:24, 3 April 2013
no edit summary
Returns a numerical value, indicating the year of the specified EL EasyLanguage Date.
EL EasyLanguage Date is specified 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.
==== Usage ====
<syntaxhighlight>Year(YYYMMdd)</syntaxhighlight>
Where: [[ :'''YYYMMdd]] ''' - a numerical expression, specifying the date in EL EasyLanguage ''YYYMMdd '' format . ==Notes == Example ====<syntaxhighlight>Year(1080101) will return * Use [[ELDateToDateTime]] to convert an EasyLanguage date format of ''YYYMMdd'' to a DateTime format.* See [[FormatDate]] and [[DateToString]] to convert a DateTime format to a value formatted string.* [[DayOfWeek]] and [[DayOfMonth]] can be used to retrieve the respective day of 108, indicating the week or the month.* See [[Month]] and [[Year]] to get the month of year of 2008 .
== Example ==<syntaxhighlight>Year(9906051080101) will </syntaxhighlight>Will return a value of 99108, indicating the year of 1999</syntaxhighlight>2008.
<syntaxhighlight>Year(990605)</syntaxhighlight>
Will return a value of 99, indicating the year of 1999.
[[Category:Date and Time Routines]]

Navigation menu