|
-
Jan 9th, 2004, 03:55 PM
#1
Thread Starter
Frenzied Member
integer to month name? [Resolved]
Does anyone know an easy way to convert a integer (1-12) into a month name (January-December)?
I could do it with a switch or an if-else, but I figure there has to be an easier way.
Last edited by ober0330; Jan 12th, 2004 at 08:47 AM.
-
Jan 9th, 2004, 04:46 PM
#2
-
Jan 10th, 2004, 05:50 AM
#3
Hyperactive Member
Do you really just have an integer?
it would an easy job if you had sth like a timestamp.
Like this:
PHP Code:
<?php
$month = date(F);
echo $month;
?>
Stephan
Keep Smiling - even if its hard 
Frankie Says Relax, wossname Says Yeah!
wossname:--Currently I'm wearing a gimp suit and a parachute.
C# - Base64 Blog
-
Jan 12th, 2004, 08:46 AM
#4
Thread Starter
Frenzied Member
Sorry, don't have a timestamp, the user is entering a month and year of a report that they want.
Thanks mendhak. You da man
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|