1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Pune, Maharashtra, India
    Rep Power
    I would appreciate it if anyone out there could tell me how to get the systen time and date in PHP. I am new to PHP but i have done ASP.
    In ASP we can get the time by using <% =Now%>
    So i would like to know how to get the system time in PHP which will give me the Date and the time together by just using one word.
    Thanking you guys in advance,
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 1999
    Rep Power

    Use the date() function. Here's info on the available options:



    echo (date ("H:i:s"));

    [This message has been edited by scollo (edited July 11, 2000).]

Similar Threads

  1. adjusting time duration from a drop down menu
    By spyghost in forum HTML Programming
    Replies: 9
    Last Post: March 1st, 2004, 02:05 AM
  2. time in - time out
    By newbiex in forum PHP Development
    Replies: 2
    Last Post: February 9th, 2004, 02:04 AM
  3. mySQl for time difference
    By lalitha in forum MySQL Help
    Replies: 1
    Last Post: February 4th, 2004, 02:41 AM
  4. Adding minutes to time and other calcs
    By Jez433 in forum PHP Development
    Replies: 5
    Last Post: January 21st, 2004, 06:00 PM
  5. how to get entry and exit page time
    By umi8330 in forum PHP Development
    Replies: 2
    Last Post: December 24th, 2003, 12:56 AM

IMN logo majestic logo threadwatch logo seochat tools logo