Home » PHP » Generate three letter month name from a date with example code

Generate three letter month name from a date with example code

Php date function have number of usages in Web programming. You can make it our own different ways for desired output. Here the piece of php code tell how to Generate three letter month name from a date
echo date('M', strtotime('14-12-1985'));

OutPut
Dec
3 letter abbreviation of english Month December

Searches related to php date function
php date format,
php strtotime,
php datetime,
php date function timezone,
php date function add days,
php mktime,
php date format function,
php current date,

Leave a Reply

x

Check Also

Export Database using codeigniter

Database Utility Class : CodeIgniter PHP script to download mysql db-codeigniter,Backup MySQL database with CodeIgniter ...