|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Security Dude
Staff
|
PHP: date() funtion
Hey,
On my site, I am trying to display the date using this syntax: print date ('h:i A, M. t, Y'); I am running into a problem though. Since I am hosted by GoDaddy on the West coast, and I am in the Central time zone, it displays the time as it is on the server. Is there any way to make it display in CST? I guess I can use Javascript for a client-side version... but is there any way to make it add two hours to the time?
__________________
Tyler A. Thompson Small Business Networking Services Specialist tyler@derbydigital.com |
|
|
|
|
|
#2 |
|
Member (9 bit)
|
you could use the following:
PHP Code:
|
|
|
|
|
|
#3 |
|
Security Dude
Staff
|
It works! thanks.
|
|
|
|
|
|
#4 |
|
Member (9 bit)
|
No problem. And, for future reference, you might want to check the comments at www.php.net. They have user comments on all of the functions and they are extremely helpful.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|