date.aw2_period

/ Utility / date.aw2_period

Title : date.aw2_period
Purpose : to get start_time and end_time
Syntax :
Input Parameters : period 

input formats for period:

  1. 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 :
Output : start and end date from today to 2 months back ( first day of that month)

Return values are – 

  1. start date – 2020 – 10 – 01 (first date off 10th month)
  2. end date – 2020 – 12 – 18 (current day)
  3. please check for hour min and second values while using them
Categories
Most Popular

Leave a Reply

Your email address will not be published. Required fields are marked *