Announcement

Collapse
No announcement yet.

time()

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Jerry
    replied
    Originally posted by Kier
    PHP Code:
    $newdate 'date';
    $newdate $newdate('m-d-Y'$originaldate); 
    would work fine actually...
    :P~~~~

    Leave a comment:


  • Kier
    replied
    PHP Code:
    $newdate 'date';
    $newdate $newdate('m-d-Y'$originaldate); 
    would work fine actually...

    Leave a comment:


  • GSHelpBoy
    replied
    My mistake, it is supposed to be:
    PHP Code:
    $newdate date('m-d-Y'$originaldate); 

    Leave a comment:


  • Jerry
    replied
    Originally posted by Jerry
    Assigning a parameter list to a variable ?
    Well of there was a = there anyway.

    I'll get my coat.

    Leave a comment:


  • Jerry
    replied
    Originally posted by GSHelpBoy
    Get the date, and then do this:
    PHP Code:
    $newdate('m-d-Y'$originaldate); 
    The convenience of using the UNIX timestamp, is the PHP date function can convert it to any format you want, so you can change the display at any time.
    Assigning a parameter list to a variable ?

    Leave a comment:


  • GSHelpBoy
    replied
    Get the date, and then do this:
    PHP Code:
    $newdate('m-d-Y'$originaldate); 
    The convenience of using the UNIX timestamp, is the PHP date function can convert it to any format you want, so you can change the display at any time.

    Leave a comment:


  • Jerry
    replied
    Change the database so you don't store it as an int ?

    http://www.mysql.com/doc/en/Date_and...functions.html

    Leave a comment:


  • Chen
    replied
    Originally posted by joyce
    if a person he insert register date using time() into the database and data type in database is int(11), how am i suppose to retrieve the date out to something like this, 11-11-2002??
    Using date().

    Leave a comment:


  • joyce
    started a topic time()

    time()

    if a person he insert register date using time() into the database and data type in database is int(11), how am i suppose to retrieve the date out to something like this, 11-11-2002??

Related Topics

Collapse

Working...
X