Displaying Present Month
echo date('M');
The output is here.Jun
Displaying Last Month
echo date('M',strtotime("first day of last month"));
May
Displaying 2nd Last Month
echo date('M',strtotime("last day of -2 month"));
Apr
Present Day of the Week
echo date('l');
The output is here.Friday
Present Day of the Month
echo date('d');
The output is here.03
0 comments:
Post a Comment