Re: Casting Varchar to a date
Quote
Question: The value seem to be showing as "2013-06-12" (effectively, YYYY-MM-DD)
I thought as we declared it as: %d/%m/%Y
The most important thing you need to know about Date formats in [just about]
any database is this:
Dates have no format.
They are held internally as numbers, the exact structure and "format" of which varies from DBMS to DBMS and over which you have
no control.
When you select Date values in the mysql client (and don't explicitly format them yourself) then the client will apply some "default" formatting for you (it has to render
everything as text so it has to convert its internal, date representatation into something you and I can understand). If you pull data into other applications, e.g. MS Excel, then that application can do this formatting for you.
Regards, Phill W.
Subject
Written By
Posted
Re: Casting Varchar to a date
July 02, 2013 05:19AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.