PHP Date() function
date display format –date(format,timestamp) Example date(“Y/m/d”); 2014/01/18 d,m,y meanings are as below d – the day of the month (01 to 31) m – month (01 to 12) Y – year (in four digits)
date display format –date(format,timestamp) Example date(“Y/m/d”); 2014/01/18 d,m,y meanings are as below d – the day of the month (01 to 31) m – month (01 to 12) Y – year (in four digits)
Characters used in the date function d-day of the month 01-31 m-month 01-12 y-year in four digits Example: echo date(“Y-m-d”);