Re: Date Conversion



pawan_test wrote:
Hello,

the output is : Jul 25
my desired output is: 0725
this is because i have to load into a table in the format MMDD

How do you plan on loading this into the table? Oracle will not store the date datatype in any of the formats listed above. But you can take the format above and convert it to a date datatype with the TO_DATE function.

TO_DATE('Jul 25','MON DD')

Just because the date is in one format, you can ingest it into the date datatype with a simple conversion....

HTH,
Brian


--
===================================================================

Brian Peasland
dba@xxxxxxxxxxxxxxxxxxx
http://www.peasland.net

Remove the "nospam." from the email address to email me.


"I can give it to you cheap, quick, and good.
Now pick two out of the three" - Unknown
.



Relevant Pages

  • Re: OT: a problem about text manipulation
    ... I am looking for an automatic way of transforming my text file into ... another one with the format ... Something seems funky there. ... The desired output doesn't match the ...
    (Fedora)
  • Re: reformat the output
    ... I made a little mistake, ... Original output: ... I really want to convert to following format: ... Desired Output: ...
    (microsoft.public.sqlserver.programming)
  • Re: GetType question
    ... Can you clarify what Type.AssemblyQualifiedName is giving you that you don't ... perhaps with an example of your desired output? ... assembly in format of full name, ... Me.GetTypegets me the fullname ...
    (microsoft.public.dotnet.languages.vb)
  • Re: SQL Order by Date `Date` column CAP ATTACHED 32kb
    ... We are talking about the DATATYPE. ... The FORMAT only has to do with how something is displayed. ... caption 'Description'. ... actually have Test that looks like a date, in which case, the sort WILL ...
    (microsoft.public.vb.general.discussion)
  • Re: export to excel converts text to scientific notation
    ... The data resides in a local table in the access database as a datatype text ... > text column with a apostrophe, which forces Excel to treat it as text ... the excel converts the Access's text format value '939336E90' to ... on the computers where it doesn't change it ...
    (microsoft.public.access.externaldata)