Date Handling in PHP

PHP date functions used to display the current date in mm/dd/yyyy, dd/mm/yyyy, and Monday September 1, YYYY are:

01/18/2022

18/01/2022

Tuesday January 18, 2022

 

PHP date and time functions that display in hh:mm 12 hr clock, hh:mm 24 hr clock, hh:mm:ss 12 hr clock, and hh:mm:ss 24 hr clock are:

04:30

16:30

04:30:07

16:30:07

 

The date 3 days from now is: Friday January 21, 2022

 

The date 7 days from now is: Tuesday January 25, 2022

 

The date 30 days from now is: Thursday February 17, 2022

 

The date 1 year from now is: Wednesday January 18, 2023