date format not correctly displayed

Hi all
I am writing a procedure to download an excel file in a table. for this, we use a csv format.
I have a DATE column in my spreadsheet. prior to the main question. I want you to know is that this spreadsheet is generated by another application (so there is no possibility to manually change the column format in excel).

the format in which the date is stored is lun-JJ-AA. so, if the date is January 1, 2000, it is displayed as January 1 00.

When convert us this spreadsheet to CSV data are not complete in the csv file. This is the January 1 00.

now the problem is that u cannot use a function to_date for the above data. It gives an error like invalid date.

can you let me know how can I handle this in the query and the query only?

Thank you
Belin
select to_date('1-jan-00','dd-mon-YYYY') from dual

ORA-01841: (full) year must be between -4713 and +9999, and not be 0

select to_date('1-jan-00','DD-MON-RRRR') from dual

1/1/2000

for more details
Difference between YYYY n RRRR date format

Tags: Database

Similar Questions

  • ORA-01821: date format not recognized when you use the format TSH:TZM model

    Hi all

    Running on the Oracle 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production database

    I guess I am missing something here... but the following SQL code raises the exception ORA-01821.

    SELECT to_char(CAST(to_timestamp(SYSDATE) AS TIMESTAMP WITH LOCAL TIME ZONE),'YYYY-MM-DD"T"HH24:MI:SSTZH:TZM') as date_updated FROM DUAL;
    

    ORA-01821: date format not recognized

    01821 00000 - "date format not recognized".

    * Cause:

    * Action:

    If I change the model of TZDS or TZR time zone format... This works.

    SELECT to_char(CAST(to_timestamp(SYSDATE) AS TIMESTAMP WITH LOCAL TIME ZONE),'YYYY-MM-DD"T"HH24:MI:SSTZD') as date_updated FROM DUAL;
    

    2013-09 - 04T 13: 24:16EDT

    I need to format a date in a date in the correct format with time zone for an Atom (RFC3339) feed

    for example. 2013-09 - 04T 14: 11:09 - 05:00

    I do not know why the TZH:TZM triggers the error...

    Database NLS settings have anything to do with it?

    NLS_TIME_FORMAT = HH.MI. SSXFF AM

    NLS_TIMESTAMP_FORMAT = DD-MON-RR HH.MI. SSXFF AM

    NLS_TIME_TZ_FORMAT = HH.MI. SSXFF AM TZR

    NLS_TIMESTAMP_TZ_FORMAT = DD-MON-RR HH.MI. SSXFF AM TZR

    Thanks for the help

    If you want to change the display format, can you use to_char with the expected format

    SELECT to_char (TO_TIMESTAMP_TZ (to_char (sysdate,' YYYY-MM-DD HH), "YYYY-MM-DD HH:MI:SSTZH:TZM"), "YYYY-MM-DD"T"HH:MI:SSTZH:TZM") t1d FROM DUAL;

  • Edited in Photoshop does not correctly display in Lightroom after recording the images

    Hello

    I recvently EU cloud Adobe and upgraded from Lightroom 3 or 4.  Since the upgrade I had problems with Lightroom not correctly display images edited in Photoshop.  Instead of the photoshop image, it creates a new jpeg image and appears in the library.  the PSD is not loaded into the library.

    I take a jpeg image of my library and shoosing the change based on Photoshop.  By selecting Edit a copy, I'm tried with the original and edit a copy with lightroom adjustments as well as with the same results.

    In Photoshop, I duplicate the base layer, the image upscaling, running some filters, addition of volunteering adjustment layers.

    I save the image in Photoshop format in the original folder where the original jpeg was in the Lightroom library.  I record with maximize compatibility on.

    When I return to Lightroom, the catalog displays the two files, the original jpeg and a copy identical to it, NOT the new file in photoshop with alterations.  If I go in the folder images occupy in the Finder using the Finder command show two images link to the same original jpeg format.  The modified file to photoshop is there in the folder but does not appear in Lightroom unless I drag and drop it.

    I've disabled all the filters and ensured that the sort is sort by name.  The image does not automatically appears in Lightroom after mounting.  Any suggestions?

    Thanks for any help!

    PS. I'm not looking for the subject, and there are discussions since 2007 and lightroom 2 but their solution was to start from scratch basically and I have a carefully labeled, starred and labeled catalog of more than 30 000 images and really don't want to do that

    Images that are edited in Photoshop will be displayed automatically in Lr only when the image file saved in Photoshop is identical to open LR.

    You say you open a jpg of Lr, then edit in PS-among other things-adding a few layers. Layers are not supported in JPG format, so you must either save it as a psd or a copy in jpg.

    In both cases, is not the same image as the one opened in Lr file, so it will have to be imported into Lr appears. If flatten you your image after editing in PS and then do a to your JPG - not a - it will be displayed in Lr.

    PS: the only exception is when you open a raw image from Lr into PS and you save it to PS in the format of file specified in Lr for external mounting. The saved file is automatically displayed in LR.

    Post edited by: web-Weaver; PS added

  • List of the albums of songs is not correctly displayed on any iPad

    I noticed that the list of Top songs is not correctly displayed on any of our Ipads, but it is on the iPhones.

    Please see the image below.

    It should be "Best songs" in the upper left corner, and where the 2 circles broken are inside should be read (Top Songs) & (Top Albums) in a border, like the other lists.  Because these buttons are missing, I can't use this list.

    I have a family membership to the apple's music, and the problem occurs on 4 separate Ipads, with 4 separate apple ID's

    I erased and reset the ipad, and to restart the problem is solved, however as soon as I finish the music to apple and then soft reboot the problem recurs.

    Anyone else have this or have any ideas?

    I have the same problem and not a clue how to solve this problem:

    Button of the top missing graphics on iPad.

    I guess it's a popular bug...

  • Acer site does not correctly display the specification.

    Acer site does not correctly display the specification.

    Example when you click on the link on M5 Explorer - 581 T-6405 please as to the specification of the model of S7-191-6447. Please check

    Thank you bring to our attention. We will ensure that it is transmitted.

  • Canon 5 d images are not correctly displayed in the develop module, they look posterized or something. They look fine in the library module, what happens?

    Canon 5 d images are not correctly displayed in the develop module, they look posterized or something. They look fine in the library module, what happens?

    Try turning off the GPU. Go in Edition > Preferences > Performance (Lightroom > preferences > Performance on a Mac) and uncheck the box use Graphics Processor.

  • Change is not correctly displayed in the develop Module

    When I make a change in the develop Module, changes are not correctly displayed in the main window and the browser window becomes gray. When I get back to the library Module, the changed image appears correctly. Then when I get back to the develop Module, the changes appear correctly. I followed the troubleshooting steps and a single point Adobe says that the permissions of the user is perhaps not good. I created a new user, and in the new user profile, LR works as it should. I use Windows 7. What should I change in the old "user permissions" to match the new "user permissions"? I prefer to delete the new user, rather than recreate my environment all over again.

    If you see gray windows to develop, it is almost generally a bad monitor profile in Windows. Unfortunately quite common. You should recalibrate the monitor. If you do not have a calibrator, try to go into the properties of your screen pane. Go to the color management tab and remove any profile associated with the parser.

  • ORA-01821: date format not recognized in PL/SQL report - 4.0

    Hello


    I use Apex 4.0 and I have a classic report (return of function application) which allows you to select a date column.
    The query runs in the background and gives the result.

    But when I run the report on the page, I get the error
     report error:
    ORA-20001: Error fetching column value: ORA-01821: date format not recognized
    The values for the column are like this 14-MAR-13, 01-FEB-13, etc... Everything seems to be good.

    But I don't know why this error occurs.

    Thank you
    Adkins

    Divya says:

    Yes, this is a database column, and the data type is Date.

    The I used to convert the format is to_date(inv_date,'dd-mm-yy').

    My format of the Date of the application is "DD-MON-YYYY '.

    If the column type is date, then DO NOT use to_date. To format the date, either use the format column (which is strongly recommended) or to_char mask in the query:

    to_char(inv_date, 'dd-mm-yy')
    

    It is not recommended the use of the 2-digit year formats.

  • Date value error ORA-01821: date format not recognized

    Hi team,

    will be running the query below, I'm getting ORA-01821: date format not recognized
    SELECT DISTINCT  to_date(TO_CHAR(csactivated,'DDMONRR'||'24:00:00'),'DD-MON-RR hh24:mi:ss') FROM CUSTOMER_ALL
    and I use the 10g version and I checked the NLS_SESSION_PARAMETERS. IE NLS_TIMESTAMP_FORMAT (DD-MON-RR HH.MI. SSXFF AM)
    ALTER SESSION SET NLS_TIMESTAMP_FORMAT ='DDMONRR HH:MI:SS AM';
    
    SELECT TO_DATE (TO_CHAR (TO_CHAR (SYSDATE, 'DDMONRR') || ' 14:00:00'),
                    'DD-MON-YY HH24:MI:SS')
      FROM DUAL;
    
    output : - 8/17/2012 2:00:00 PM
    

    See you soon,.
    Manik

  • Animation is not correctly displayed in Firefox

    My animation is not correctly displayed in Firefox. Have searched this forum and others, I am only able to find solutions exceeded (such as the update to the latest version of Animate). I'm on the later versions of Animate and Firefox and still problems. Anyone know of a solution to this, or can I directly me to a discussion which has already covers it?

    One interesting thing to note is that only the tree Centre is differently, the commands for each seem to be the same. The small mountains are also fine, but not Mount Rainier.

    Here is my test page:

    http://jonnyart.com/test/NewYearsAnimation

    Thank you!

    In case someone else runs into this problem, I was able to solve it by rebuilding portions of the animation.

  • ORA-01821: date format not recognized

    Hi all

    Can you help me debug this error please. It drives me crazy :(


    update inventory set decomission_date = August 19, 11 ' where ID = 100;
    *
    ERROR on line 1:
    ORA-01821: date format not recognized
    ORA-06512: at "SC. AUDIT_PKG", line 29
    ORA-06512: at "SC. AUD_INVENTORY", line 39
    ORA-04088: error during execution of trigger 'SC. AUD_INVENTORY'


    ORA-06512: at "SC. AUDIT_PKG", line 29 is:
            insert into audit_tbl values
            ( sysdate, nvl( v( 'app_user' ), user ), upper(l_tname), upper(l_cname),
              to_char( l_old, 'dd-mon-yyyy hh24:mi:ss' ),
              to_char( l_new, 'dd-mon-yyyy hh23:mi:ss' ), l_id );
    SQL> desc audit_tbl
     Name                                      Null?    Type
     ----------------------------------------- -------- ---------------
    
     TIMESTAMP                                          DATE
     WHO                                                VARCHAR2(30)
     TNAME                                              VARCHAR2(30)
     CNAME                                              VARCHAR2(30)
     OLD                                                VARCHAR2(2000)
     NEW                                                VARCHAR2(2000)
     ID                                                 NUMBER
    ORA-06512: at "SC. AUD_MDC_INVENTORY", line 39 is:
     audit_pkg.check_val( 'INVENTORY', 'DECOMISSION_DATE', :new.DECOMISSION_DATE, :old.DECOMISSION_DATE, :old.id );
    What are the causes the incorrect date format pleaseeeeeeeeee...


    Thank you very much.

    TO_CHAR (l_new, 'hh23:mi:ss of mon-dd-yyyy'), l_id);

    Looks like a simple typo - code a CM23 instead of HH24!

  • My computer does not correctly display web pages?

    On some web pages the boxes are stacked, for example on the MSN homepage ads pop up in the left corner of the screen on the top of the page instead of on the right side, and on the right hand side where they should be it's an empty box? Other pages display does not correctly? I don't know how to fix this or why it happened?

    Hi ChristineDupre,

    1. what browser do you use?

    2. don't you make changes on your computer before this problem?

    If you use Internet Explorer, you can follow these methods & check if it helps.


    Method 1

    You can follow this link and check if the problem persists.

    Some sites Web may not behave as expected in Internet Explorer


    Method 2

    If you have Internet explorer 9 installed, please follow this link.

    Web pages displayed incorrectly in Internet Explorer 9

    Hope the helps of information.
    Please post back and we do know.

  • Theme 25 - items are not correctly displayed in the presentation of the grid

    Hi all

    APEX 4.2.5.00.08

    Oracle 11g Enterprise Edition

    I am new to 4.2. I created an application on 4.1 and exported 4.1 and imported to 4.2. I'm trying to view the forms as they were posted in 4.1. But I have problems with the presentation of the grid. The elements are the overlap between them and the regions is narrowed. I read a blog and he said to remove all the colspan which will then automatically display elements. I did, but it did not work. The form consists of several parts using a list of tabs on the page. Parts of the tab using the model 'Region without the buttons and titles' of the region. I tried to replace the template "no model", while he was a little better, it has not corrected the problem.

    I've migrated the application and objects in the db at the APEX. ORACLE.COM (it took a few hours) and I hope someone can resolve my problem until the site is upgraded to 5.0.

    Workspace: RGWORK

    Application: KIMBERLY (33925)

    Page: Vehicle details (13)

    Username: TESTER

    Password: test456

    The first screen will be a Update/View vehicles 1 choice menu

    Choose this option and a report with a single line id.

    Select this line and display page 13.

    You have Developer access but please keep me on what has been fixed. I don't want remedy you. I want to know what has been resolved as well.

    Please get back me to me as soon as POSSIBLE because the site is upgraded to 5.0 this Friday.

    Robert

    sect55 wrote:

    I am new to 4.2. I created an application on 4.1 and exported 4.1 and imported to 4.2. I'm trying to view the forms as they were posted in 4.1. But I have problems with the presentation of the grid. The elements are the overlap between them and the regions is narrowed.

    Why you want to switch to theme 25 instead of simply retain the theme that was used in 4.1?

    Go wrote:

    Robert,

    Look at your application. just a simple change.

    change:

    Region: Veh/equip Information

    Presentation of the grid:

    Start the new row: Yes

    That helps, but it's not the whole story, as it appears the layout is still affected by the problem described in the thread previous Theme 25 region without buttons and issuance of securities

    Applying the fix I suggested it (in 78449 application I created a copy to ensure that I was working with the initial problems) Gets the items on the same line, but I guess that's not the same as the original provision and it doesn't look very good.

    Basically, I would say either stick with the original theme or by switching to a 4.2 theme that still use the page layout based on a table (for example, 24 or 26). Theme 25 is difficult to work with and works best with presentations created especially for her from the start.

  • color in CS4 are not correctly displayed since the upgrade to windows 10

    I have upgraded to Windows 10 last week and I had problems with colors does not display does not correctly in CS4. I tried to take a screenshot of exactly what I see in CS4, but when I post it online it seems fine. Telling me that something is now display properly in CS4. It also happens in LR3. When I post the photo online or look at him in the Windows Photo Viewer, it seems. I took a video of what is going on, but the quality is not so great. I apologize. Can anyone help? I have been searching the Internet for two days and can't find an answer to my problem. I went to the Intel website and there is not an updated video driver for my graphics card.

    Most likely you have a bad monitor via Windows Update profile. Manufacturer profiles are notoriously unreliable and often faulty and should always be avoided.

    This will only affect the applications of color management that actually use the profile.

    Recalibrate, or if you have a calibrator uses sRGB IEC61966 - 2.1 until you get a.

    Restart Photoshop when done so he can pick up the new profile at startup.

  • Site does not correctly display on the Samsung Tablet

    Hi all

    I've seen a few questions about Muse sites not shown correct on a Samsung tablet. My problem is similar but even more. The site is the correct display on computer office/ipad/iphone but not on the Tablet from Samsung.

    In the previewt its is not displayed. Now, I also know that the preview more or less simulates how a site should look like.

    This is the site: www.uwpersoonlijkeoptieadviseur.nl (Dutch site).

    I looked at the links and they seem to be ok. I mean all the links link to the version of the tablet.

    see you soon,

    Larry

    Great!

    Yes, that would be a problem with browser itself that you understood.

    This can happen if the browser is not updated with the older devices.

    Thank you

    Sanjit

Maybe you are looking for