Date-time operators

Tinderbox Icon

Date accessors and manipulator operators are available for rules and actions:

The action code method to format a date string is to call the various date-related operators.

Date examples:

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

If $Date is July 4, 2009 then

day($Date) ...is 4

If $Date is July 4,2009, then

$Date=day($Date,5) 

will change $Date to July 5, 2009.

If $Date is July 4, 2009 then

month($Date) ...is 7

If $Date is July 4,2009, then

$Date=month($Date,5) 

will change $Date to May 4, 2009.


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

Up: Action Operator Types
Previous: Data manipulation operators  Next: Formatting operators 

A Tinderbox Reference File : Actions & Rules : Operators : Action Operator Types : Date-time operators

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