Jump to content

Help needed with date month and year?


Solarpitch

Recommended Posts

Hey,

 

I have a variable in my app that receives the month and year in this format: "January 2009"

 

I then need to break it up into its respective month number ie: "01" as its January and then the year "2009"

Just wondering how I can break it down so I can store it like

 

$month = 01;

$year = 2009;

 

I should mention I've been looking through http://ie.php.net/date but cant seem to find a solution I can adapt.

 

Link to comment
https://forums.phpfreaks.com/topic/141060-help-needed-with-date-month-and-year/
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.