date.aw2_period
/
Utility /
date.aw2_period
By Amit Singh. Posted on
Title |
: |
date.aw2_period |
Purpose |
: |
to get start_time and end_time |
Syntax |
: |
|
[date.aw2_period period="param1:param2" /] |
|
Input Parameters |
: |
period
input formats for period:
- months:number of months (integer – 1 to 12 )
the other formats will be here very soon.
|
Return Value |
: |
It returns: array of start_datetime and end_datetime (return foramat : YmdHis) |
Example 1 |
: |
Code |
: |
|
[date.aw2_period period="months:2" set=template.periodbetween /] |
|
Output |
: |
start and end date from today to 2 months back ( first day of that month)

Return values are –
- start date – 2020 – 10 – 01 (first date off 10th month)
- end date – 2020 – 12 – 18 (current day)
- please check for hour min and second values while using them
|
|
Last Modified By Pratik Takle.