calculate the no of days and view the name of the day of a month using php code example Example: php get total amount of days in month $DaysInCurrentMonth = date('t');