Transform date

  • I would like to transform a date from YY-MM-DD YYYY-MM-DD 00:00:00.000.

    I know I have to use TRUNC(MyDate) but how do I ensure I get the last part with the ficitive time. What is the syntax in oracle sql?

    Thanks for any help!

    Mony

  • Not totally sure if I got your question right but statement below will certainly point you in the right direction, log into sqlplus and execute...

    select to_char(sysdate, 'mm/dd/yyyy hh24:mi:ss') from dual;

    _____________________________________
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at Amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply