SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Nov 2006
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    time & date format convert

    I want to store dates and times in a number format. Like November = 11 and 1:30 = 0130. Is there a function that will help me convert say 11 to November or Nov.

  2. #2
    SitePoint Member
    Join Date
    Jul 2006
    Location
    jhb, south africa
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    say $date is the date you want to format
    PHP Code:
    $formatted date("d m Y"strtotime($date)); 
    See PHP date() for formatting options


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •