Some Date Functions


/ Published in: PHP
Save to your folder(s)

These are some date functions.

Get Current Week Start Date
Get Current Week End Date
Get Current Month Start
Get Current Month End
Get Current Year Start
Get Current Year End

and these functions can help you getting last week's start date or next month end date.

To get last week's start date, remove 7 days from current week, and pass that date to get current week start date and it will return last week's start date.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.