date(year,month,day,[hour,min])

Tinderbox Icon


Operator Type:   Function
Operator Scope of Action:   Item
Operator Purpose:   Date-time

date(year,month,day[,hour,min])

constructs a date from individual numeric elements. This is useful, for example, if you need to assemble a date from separate attributes.

year is the 4-digit year

month is a number from 1-12

day is a number from 1 to 31

The time arguments are optional, and are specified in a 24-hour clock.

hour is a number from 0 to 23

minute is a number from 0 to 59

Using this operator, do not quote the whole arguments set - these should be left as individual numbers.

Wrong: $MyDate = date("2004,7,23,16,45"); 

Right: $MyDate = date(2004,7,23,16,45); 

Examples:

date(2004,7,23,16,45) ...is 23 July 2004 16:45 


Possible relevant notes (via "Similar Notes" feature):

Up: Item-based operators

A Tinderbox Reference File : Actions & Rules : Operators : Action Operator Scope : Item-based operators : date(year,month,day,[hour,min])

Quicklinks: Attributes | Action Codes | Export Codes | Designators | Date Formats | aTbRef Site Map

[Last updated: 16 May 2012, using v5.11.1]


Search:

Google search aTbRef for:  


Creative Commons Licence

aTbRef by Mark Anderson is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

[See aTbRef CC licence Attribution & Waiver info]

Made with Tinderbox