[SOLVED] date format question???

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
wesnoel
Forum Commoner
Posts: 58
Joined: Fri Sep 05, 2003 11:53 am

[SOLVED] date format question???

Post by wesnoel »

Need to write a date to a csv file log.

How would I seperate the month,day,year?

Example:
Seperated by commas

November,07,2003,



Any help?

Wes/
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

check [php_man]date[/php_man] in php manual, why didnt you do that in the first place? :?
wesnoel
Forum Commoner
Posts: 58
Joined: Fri Sep 05, 2003 11:53 am

Post by wesnoel »

I did but I really don't understand all of this. I'll look over it again.

Sorry for bothering everyone.

Wes/
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

Code: Select all

<?php
$today = date("M d Y", time());//month day year format.
?>
wesnoel
Forum Commoner
Posts: 58
Joined: Fri Sep 05, 2003 11:53 am

Post by wesnoel »

Thanks!

I found it.


You guys rock qads!

Wes/
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

no problem :)
Post Reply