?

Search Help Board

PHP FAQ
PHP Articles
PHP Help
Bulletin Board

PHP Manual (NEW!)
First Time PHP'ers
Help with programming
Sql assignment help
PHP Homework Help


C# Help

?
?Re: Format date from Database
Author:??(---.cpe.net.cable.roger)
Date:???06-03-03 20:21

$months=array(1=>"jan","feb","mar","april","may","june"..."dec");

$this_month=$months[$month];

echo $this_month;

using an associateive array, set to start at one instead of 0 as norm, you can access the month name value as listed above.

hth

?Topics Author? Date
?Format date from Database??new
Lu 06-03-03 11:43?
?Re: Format date from Database??new
? 06-03-03 12:17?
?Re: Format date from Database??new
Lu 06-03-03 12:44?
?Re: Format date from Database??new
bastien 06-03-03 20:21?
?Re: Format date from Database??new
Brandon Parise 06-04-03 13:27?
?Re: Format date from Database??new
Lu 06-06-03 08:05?
Go to Top??|??Go to Topic??|??Flat View??|??Search?
??|??
New Topic
?Reply To This Message
?Your Name:
?Your Email:
?Subject:
Email replies to this thread, to the address above.
????

Provided By
Phorum