Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Displaying Date And Time (gmt+8)
dvayne
post Nov 8 2007, 08:24 AM
Post #1


Newbie [Level 1]
*

Group: Members
Posts: 11
Joined: 28-October 07
Member No.: 52,165



how to display date and time (gmt+8)? any help would be appreciated.
Go to the top of the page
 
+Quote Post
jlhaslip
post Nov 8 2007, 12:47 PM
Post #2


A computer once beat me at chess, but it was no match for me at kick boxing.
Group Icon

Group: [MODERATOR]
Posts: 3,993
Joined: 24-July 05
From: In Trouble Again... still?
Member No.: 9,787
Spam Patrol



the php manual might be handy for this.

http://docs.php.net/manual/en/function.date.php
http://docs.php.net/manual/en/function.time.php

There are many time and date functions available to you in php. Those links should get you started.
Go to the top of the page
 
+Quote Post
Amezis
post Nov 9 2007, 08:37 AM
Post #3


Privileged Member
*********

Group: Members
Posts: 535
Joined: 14-February 05
From: Oslo, Norway
Member No.: 3,759



To display the date and time, follow the links posted by jlhaslip. If the server is located in another timezone, you will need to use date_default_timezone_set() to set another default timezone before you use time() and date(). More information about this function can be found at http://docs.php.net/manual/en/function.dat...imezone-set.php (click here to see a list of all supported timezones). Hope that helps smile.gif
Go to the top of the page
 
+Quote Post
dvayne
post Nov 9 2007, 09:37 AM
Post #4


Newbie [Level 1]
*

Group: Members
Posts: 11
Joined: 28-October 07
Member No.: 52,165



example please..
Go to the top of the page
 
+Quote Post
coolcat50
post Nov 10 2007, 02:06 AM
Post #5


Super Member
*********

Group: Members
Posts: 290
Joined: 5-October 07
From: Random Places
Member No.: 51,171
Spam Patrol



Ok, to do this the simple, but not fully accurate way use a code like this.

CODE
<?php
$date=date(D,F,J);
echo $date;
?>


There is a little code.
Go to the top of the page
 
+Quote Post
dvayne
post Nov 11 2007, 11:35 PM
Post #6


Newbie [Level 1]
*

Group: Members
Posts: 11
Joined: 28-October 07
Member No.: 52,165



thanks, I know it already
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Php/mysql Search Engine Help(1)
  2. Adding One Day To Date(3)
  3. Displaying Latest Added Files Of Subdirectories ?(5)
  4. Directory Files Displaying(5)
  5. Displaying Files Of A Directory(2)
  6. Simple Php Calendar And Yahoo! Calendar Connection(7)
  7. Display The Current Date/time(3)
  8. Php Date() Problem [resolved](4)
  9. Displaying Your Phone Number On A Wap Site(3)
  10. Displaying 10 Records Per Page(5)
  11. Php Date()?(4)


 



- Lo-Fi Version Time is now: 5th September 2008 - 06:19 AM