Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 date/time
Index -> Programming, PHP -> PHP Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Homer_simpson




PostPosted: Wed Aug 20, 2003 12:46 am   Post subject: date/time

how can insert current time and date into 2 strings?
Sponsor
Sponsor
Sponsor
sponsor
PaddyLong




PostPosted: Wed Aug 20, 2003 12:23 pm   Post subject: (No subject)

look at the date() function ...
http://ca.php.net/manual/en/function.date.php

it would be something like

$time = date("g:ia");
$date = date("l, F j Y");

(note the first character in the $date thing is a lower case L)
Homer_simpson




PostPosted: Wed Aug 20, 2003 1:03 pm   Post subject: (No subject)

alright... thx
Display posts from previous:   
   Index -> Programming, PHP -> PHP Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: