[ASK]Insert "at" on date

Discussion in 'PHP' started by 2mk_atspace, Apr 13, 2010.

  1. #1
    My code :
    date("d F Y H:i:s", strtotime($row->date))

    Result : 01 January 1970 07:00:00

    How to make result like this

    01 January 1970 at 07:00:00

    Like on Wordpress
     
    2mk_atspace, Apr 13, 2010 IP
  2. guardian999

    guardian999 Well-Known Member

    Messages:
    376
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #2
    
    echo date("d F Y", strtotime($row->date))." at ".date("H:i:s", strtotime($row->date));
    
    PHP:
     
    guardian999, Apr 13, 2010 IP
  3. 2mk_atspace

    2mk_atspace Well-Known Member

    Messages:
    317
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #3
    Thank you.
     
    2mk_atspace, Apr 13, 2010 IP