Question: Write a PHP script to display the following dates. Use the date function to display the current date and time. Add one month to this

Write a PHP script to display the following dates.

Use the date function to display the current date and time.

Add one month to this date and display.

Use the DateTime object to display the current date and time.

Add one year to this date and display.

Use your favorate function or object to display the current date in the following formats:

yyyy/mm/dd

mm/dd/yyyy hh:mi:ss am/pm

full day name, full month name day, year

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!