Framework:TimeDimAdd: Difference between revisions

From CoPlanner 10
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
==[[Framework:Functions|Function]]==
==[[Framework:Functions|Function]]==


TimeDimAdd(<DateType>,<Interval>,<DateID>,[Format])
<span {{CoPFormel}}>TimeDimAdd(<DateType>,<Interval>,<DateID>,[Format])</span>


{| class="wikitable" width="80%"
{| class="wikitable" width="80%"
Line 26: Line 26:


==Example==
==Example==
TimeDimAdd(M,-12,2010010101,yyyy)<br>
<span {{CoPFormel}}>TimeDimAdd(M,-12,2010010101,yyyy)</span><br>
Result: 2009
Result: 2009



Revision as of 16:06, 6 March 2012

Function

TimeDimAdd(<DateType>,<Interval>,<DateID>,[Format])

Parameter Description
DateType Q, W, M, D, Y
Interval Integer (positive or negative)
DateID ID to be moved
Format Optional. Format of the return value. All date formats are supported. If no Format is availeable, the ID will be returned.

Result

Returns the moved ID or date format. If no Format is availeable, the ID will be returned.


Example

TimeDimAdd(M,-12,2010010101,yyyy)
Result: 2009