date convert in different mode

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Noorain
    New Member
    • Mar 2008
    • 57

    date convert in different mode

    Dear

    I use date of birth(dob) field, its data type date.

    i entry 5 June, 1980 dob in database. select this format and its save in database 2008-06-05. but i want to show DOB: 5 June, 2008. but i can't do that. whats function of php i use that. please help me.
  • dlite922
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    #2
    See strtotime() then see
    See Date() to format it the way you want.

    If you are going to do MySQL date calculations, it is best to use the DATE type, else just store your dates as a VARCHAR.

    Good luck,

    Dan

    Comment

    Working...