Oracle SQL Output to Excel - Date format issue -


I have run a SQL query for Oracle, which includes the date of the invoice and the date of the check. As Excel is copied to the spreadsheet, it has been given as pre: "13-10-31" (October 31, 2013). However, when the date format is changed, it is displayed as "10/13/1931". I have tried various types of dates, but it is always the first part of the text as the day, month, Then recognizes as the year. I need to set these values ​​as a date format because I need to calculate the days payable and other related ratios.

Is there any way to convert these values, so that Excel can identify days, months and years correctly? Will there be a macro that can automate this process for existing data and data in the future?

Thank you in advance.

First of all, I hope the data type of your date column is DATE is. Second, the date is always the year as YYYY and not just YY . The world has already learned from Y2K bug.

If the above two digits are found, use the to_char (date_column, 'mm / dd / yyyy') while displaying. Thus, there will be no confusion in the year and other areas, with the format YYYY .


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -