Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Timestamp formats

Status
Not open for further replies.

torvalen

Programmer
Apr 24, 2009
1
Hello

When I list my table in Navicat or MyPHPadmin, I get the desired Date Time format (2009-06-07 09:00:00).
When I create a Recordset in Dreamweaver I get an unwanted Date Time format (Sun Jun 7 09:00:00 UTC+0200 2009 ).
How I retain the date format that MySql spit out?
Why does the format suddenly change when i make a recordset in Dreamweaver? I think that I have set the character set and encoding right in both database and application.

BR. Tor valen
 
you ~could~ generate a date string with the exact desired format tight in the SQL, using the DATE_FORMAT function

a better solution would be to tell Dreamweaver how to format the date

r937.com | rudy.ca
Buy my new book Simply SQL from Amazon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top