Jump to content

extract month of date


klinmy

Recommended Posts

You can use a combination of the [a href=\"http://www.php.net/strtotime\" target=\"_blank\"]strtotime()[/a] and [a href=\"http://www.php.net/date\" target=\"_blank\"]date()[/a] functions:
[code]<?php
$date = '2006/06/01';
echo date('F',strtotime($date));
?>[/code]

Ken
Link to comment
https://forums.phpfreaks.com/topic/7323-extract-month-of-date/#findComment-26646
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.