![]() |
|
#1
|
||||
|
||||
Converting month number to month nameHow do you convert a month number, e.g. 02, into month name, i.e. February?
For the moment, I have this in my PHP script: PHP Code:
It works, but I was wondering if there is something else already available that I am not aware of. |
||||
|
#2
|
||||
|
||||
Re: Converting month number to month nameThat seems, so far, about the easiest way to get it done.
Not sure if you have that in a function, but here's a code snippet that does: http://www.phpit.net/code/get-month-name/ __________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#3
|
||||
|
||||
Re: Converting month number to month nameI think it's overkill to write a whole function for something that's just one line long, and for something I have a use for only once, and in a loop.
It was a 'design flaw', the text file that holds the data for the gid_archive.php page only contains numeric month & year data. It should have been unix timestamps. |
|
#4
|
||||
|
||||
Re: Converting month number to month nameYour right, one liner, used once -- no function needed!
(just didn't know the scope of use) __________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#5
|
||||
|
||||
Re: Converting month number to month nameBut thank you for confirming that this is the best way to get the information, at least I can move on to other things instead of wasting my time searching for a better solution that isn't there. I can be obsessive sometimes
|
Recent GIDBlog
Problems with the Navy (Enlisted) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Please Help Me To Build My Calendar!!! | suriacute85 | Java Forum | 0 | 05-Oct-2006 19:39 |
| Converting a number amount to text | Godzilla | C++ Forum | 5 | 31-Mar-2006 11:38 |
| C++ Program Print Calendar HELP | tones1986 | C++ Forum | 2 | 08-Sep-2005 21:05 |
| Anyone can write a program code for this??? | chriskan76 | C Programming Language | 1 | 19-Oct-2004 20:25 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The