now() integer format

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abertay
    New Member
    • Jul 2007
    • 10

    now() integer format

    I've inserted a record into mysql db using now() function value.

    just like...

    insert into TABLE_NAME(date ,name,age)value s(now(),'Naresh ','24')

    when tried to echo the date filed value on the local system,it gives me 2007-06-06 13:14:16.

    But on the live system it gives me as 20070606131416( I dont want this format).
    It's weird and i can't understand what the problem.

    And i need to get the same format exactly as on the local system.
    I need that format for my database queries.

    can any one help me out here?

    Thanks in advance.
  • mwasif
    Recognized Expert Contributor
    • Jul 2006
    • 802

    #2
    Use DATE_FORMAT() to view the required date format.

    Comment

    Working...