Jump to content

[SOLVED] Number to represent it's month


hostfreak

Recommended Posts

Hello, I was wondering if it were possible to take a number and format it to represent the corresponding month. For example:

 

Say you have 01 (which we know would be January). How can I format it to be January? I am retrieving months from a datecolumn in a database with the mysql month() function.

 

edit: I have discovered the mysql monthname() function, however I need to keep the value of the months as a number, so that wont work.

Link to comment
https://forums.phpfreaks.com/topic/62537-solved-number-to-represent-its-month/
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.