Problem with date settings

Hi all. I have the problem with the Sub statement


SELECT THE DOUBLE TO_DATE(:P_DATE,'DD/MM/YY')

it get me ' 10 / 04/2012 '

but I want 10/04/12 not as above.

I saw that DD/MM/YY not like 'DD/MM/YYYY' still it gives me 10/04/2012 why can someone explain?

Kind regards
Uraja

To_Date will always give you the output date format-based nls...

Instead, you can try

SELECT to_char (TO_DATE(:P_DATE,'DD/MM/YY'), ' DD/MM/YY') FROM DUAL;

or replace nls_Date_format jj/mm/aa

Tags: Database

Similar Questions

  • Problem with power settings during the opening of Windows Media Player 12

    Original title: power options Windows Media Player Exchange

    WMP 12 of opening causes the power option for monitor turn-off time to return even if the time is 2 hours 15 minutes. Tried to reset the value, value save, all electrical energy plans by making the same, nothing is done.  Other set values, for example disk hard turn off (never set) will be defined and stay together.  Would have someone seen this kind of thing?   Operating system is Win7 Professional 32-bit.  All available updates have been installed.

    Hi Jim,.

    Please contact Microsoft Community. I understand that you have a problem with the power settings when opening Windows Media Player 12. I've surely you will help solve this problem.

    To better understand the issue, I would need more information on your side.

    1. The problem only occurs when Windows Media Player is opened?
    2. Did you the latest changes on the computer before this problem?

    This problem might have occurred because of these reasons:
    1. incorrect power settings.
    2 conflict between third-party applications.

    I suggest you try the steps listed here and check if it helps:

    Method 1:
    Run Troubleshooter of power that will check if the basic power settings are set properly or not.

    Open the troubleshooter of power
    http://Windows.Microsoft.com/en-us/Windows7/open-the-power-Troubleshooter

    Method 2:
    If the problem persists, restore to the default settings for power management. Check if it helps.

    Note: try the following steps only if you have not tried before.

    Step 1:

    To restore to the default settings power management, follow these steps:

    1. Click Start.
    2. In the search programs and files box, type cmd.
    3. Right click on CMDand then click run as administrator.
    4. At the command prompt, type powercfg - restoredefaultschemesand then press ENTER.
    5. At the command prompt, type exit to exit the command prompt.
    6. Restart the computer.

    Step 2:

    Once the plan of power reset by default, you can create a new power plan and the same customize according to your needs.

    Power plans: frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows/power-plans-FAQ#1TC=Windows-7

    Method 3:
    If the problem persists, set up the computer in a clean boot state, and check if that helps. Setting the system in a clean boot state will help you determine if third-party applications or startup items are causing the problem.

    How to perform a clean boot in Windows:
    http://support.Microsoft.com/kb/929135/en-us

    Note:  After the clean boot troubleshooting steps, see the "How to reset the computer to start as usual after a clean boot troubleshooting" section in the link provided to return the computer to a Normal startup mode.

    Hope this information helps. Reply to the post with an up-to-date report of the issue so that we can help you further.

  • Structure of the event: problem with data transfer

    Hello everyone,

    for three days I'm troubleshooting an issue in LabView with the event structures. I really hope someone can help here, because I can't find anything on the entire WEB.

    I had six groups of equal to a VI entry, each containing five checks enum (among others) where the user can specify some configuration of measurement data. I want the program to do is: to recognize if a any of these enum values has been changed and if yes, then submit the values containing the cluster in a subvi then calculates the wiring and affect the material of the ports. In addition, i need to submit the number of the enum element that was changed, so the program is able to clear the user input in the case of a breach (e.g. If the user sets two entries of enum control 1 meter and 2 Group 1 and then tries to set a third counter of entry to port 3, the program displays a message and deletes third entry as the number of entries of counter is limited to 2 per cluster).

    To resolve this problem, I used a structure of the event with 6 x 5 cases (change of enum value 1 Group 1 Group 1 enum value 2 change... and so on until the change in the value enum 5 Group 6).

    The problem is that if the user changes a value, the event structure reacts and performs the proper case; However VALUES of the cluster, the user changed are not subject to the SECOND time that an event occurs. It is a kind of a situation, "n-1". For example, if all five controls Enum of Group 1 are 'disabled' first and the user sets enum 3 of 'Meter entry', the structure of the event runs but submits the values previous to the Subvi (all enums 'Disabled'). When the user makes the second change, say that enum SWITCH1 to "Analog Input", the structure of the event is running again and passes the values of the FIRST user to the Subvi editing, then the Subvi gets data "enum 3 meter inlet and all other disabled enumerations.

    In easier words: if I have new values on my cluster "Kanal 1" (left side of the screenshot) and run the structure of the event, on the right side to "Kanal 1" indicator, I get the previous values (n-1).

    The structure of my event is in a while loop. If I create a timeout every 10 ms, and a loop of 250 ms the waiting time, I got the 80% chance that the recent changes are transferred to the Subvi correctly, in other cases I have a delay of the 1 step as described above. It seems to be directly based on the time that I specify the while to wait - but I can't explain it and I cannot accept a less than 100% chance to transfer the correct data, nor can I accept delays of a few seconds for each loop run. If I indicate timeout (infinite) get delayed 1-1 step values in all cases.

    When I specify cases of event to react on "all items value change" of the structure of the event behaves properly - but then I can't handle indicate which element has changed, as the CtlRef of output in case of a structure does not specify "enum 1, enum 2..." but only "Group 1".

    Does anyone have a solution to this? It is certainly a problem with the structure of the event, but I can't understand what to change.

    Thank you much in advance,

    Mr. Boiger

    This is because the terminal is read until the structure of the event runs.   Terminal is read, the event structure is waiting for an event.  The change in value.  Business events are running, but the value is the old value.

    Put the terminal inside the event.

    Or, you can display the connector called "New value" on the side left (stretching down from the border of the node 'CtrRef').  Use a wire one to come.

  • Problem with date and time

    HP Elite m9498d, Windows Vista 32-bit. Battery change, but the time and date again goes back to January 2002?

    Then, it might be a problem with the BIOS itself. Try to update the BIOS which for sure should solve the problem.

  • Problems with date calculation

    I have a java (and much more far vb) background and it seems that I'm really dependent functions for date calculations.  I'm trying to do a few things, but have not been able to accomplish them.

    I do not have

    Calendar.add()
    

    I briefly contemplated an add function by converting into long then do the calculation and returns a new calendar object, but the problems with this approach comes flourishes as soon as I started.  Just trying to find out if a date was yesterday was me banging my head against the wall.

    Any help please?

    I wrote this, but I don't know if there is a simpler method, go to this issue the wrong way, etc.

    public static boolean isYesterday(Calendar c) {
        Calendar today = Calendar.getInstance();
        int newDay = today.get(Calendar.DAY_OF_MONTH);
        if (newDay == 1) { //get last day of previous month
            int newMonth = today.get(Calendar.MONTH);
            int newYear = today.get(Calendar.YEAR);
            /* If jan 1, get dec of last year */
            if (newMonth == 0) { //Java Calendar.MONTH is zero-based
                newMonth = 11;
                newYear -= 1;
            today.set(Calendar.YEAR, newYear);
            }
            today.set(Calendar.MONTH, newMonth);
            newDay = DateTimeUtilities.getNumberOfDaysInMonth(newMonth, newYear);
        } else {
            newDay -= 1;
        }
        today.set(Calendar.DAY_OF_MONTH, newDay);
        return DateTimeUtilities.isSameDate(today.getTime().getTime(), c.getTime().getTime());
    }
    

    'convert to tz to the device.

    I recommend that stick you with using UTC for everything.  If you want to display to the user, then a DateField will convert the hour UTC to local time.  SImpleDateFormat.formatLocal will also print you long time UTC to local time.  So I recommend that you do not have to convert once at the local level.

    Remember that System.currentTimeMillis () is time not UTC/GMT.

    Of course, that's a good advice or not depends on your app.

    I'm not aware of any third-party code that helps, I reinvented wheels square to all my treatment to date.  But I never really looked at.

    About your code, assuming that c calendar uses the local time zone, so I think that the code works.

  • TO_CHAR fucntion problem with dates.

    Hi all

    I tested the following problem with 10g and 11g databases, and the problem is the same.

    create table aa (a date);
      insert into aa values('23-Mar-2014');
     commit;
    

    now the following query gives no results

    select count(*) from aa
    where to_char(a,'dd-Mon-yyyy') >='23-MAR-2014' and to_char(a,'dd-Mon-yyyy') <='23-Apr-2014';
    COUNT(*)
    ----------
     0
    

    and the following query gives the results

    select count(*) from aa
    where a>='23-Mar-2014' and a<='23-Apr-2014'
    
    COUNT(*)
    ----------
      1
    

    Why?

    We need the to_char working for our criteria of search dot net application.

    kindly guide us.

    Thank you

    You're hurting. Why convert a date into a string of characters and try to compare it to another string? This is false.

    Insert into aa values('23-Mar-2014');

    should be

    insert into aa values (to_date (March 23, 2014 ',' MON-DD-YYYY "");)

    and your selection should be:

    Select count (*) in aa

    where a > = to_date (March 23, 2014 ',' MON-DD-YYYY') and to_date (April 23, 2014 ',' MON-DD-YYYY "")

  • Problem with Date calc

    I am trying to get this FormCalc calculation to work:

    Date2Num (form1. Page1_SF. EffectDates.endDate, ' DD/MM/YYYY') - Date2Num (form1. Page1_SF. EffectDates.startDate, "DD/MM/YYYY")

    Evently, I will divide by 7 to get the number of weeks, but the initial calculation won't work after the dates entered.

    Can you tell me what the problem with my forumula?

    Thank you.

    Odd. Something strange on the Date2Num format. I changed them in the calculation for "YYYY-MM-DD" and it works. Note that this is the calculation of the number of days elapsed.

    If (HasValue (form1. Page1_SF. EffectDates.endDate) & HasValue (form1. Page1_SF. EffectDates.startDate)) then
    $.rawValue = Date2Num (form1. Page1_SF. EffectDates.endDate.rawValue, 'YYYY-MM-DD') - Date2Num (form1. Page1_SF. EffectDates.startDate.rawValue, "YYYY-MM-DD")
    on the other
    $.rawValue = null
    endif
    Steve
  • problems with DATE

    Hello

    I have the following plsql:
    DECLARE
       TYPE record_t
       IS
          RECORD (
             col_1    DATE,
             col_2   VARCHAR2 (7),
             col_3    VARCHAR2 (1)
          );
    
       l_record    record_t;
       l_ref_cur   dyn_fetch.ref_cur_t;
    BEGIN
       l_ref_cur := helper.ref_cur;
    
       LOOP
          FETCH l_ref_cur INTO   l_record;
    
          EXIT WHEN l_ref_cur%NOTFOUND;
    
          ELSIF (LOWER (l_record.col_3) = 'd')
          THEN
             DELETE FROM  table_new
                   WHERE   MY_DATE = TO_DATE (l_record.col_1);
    
             DBMS_OUTPUT.put_line ('here it is: ' || l_record.col_1);
          END IF;
       END LOOP;
    
       CLOSE l_ref_cur;
    END;
    So, the problem is, that 'L_RECORD. COL_1"returns dates in the form: jj. MM YY

    It works very well with most of the files, but it does not find the file with date = 15.08.1930. Then I l_record.col_1 = 15.08.30! Maybe the problem is that oracle is not sure if she should return * 1930 or 2030 *...

    So, how can I solve this problem, I want to return the l_record.col_1 * 15.08.1930 *, NOT 15.08.30!

    Should I change the definition of the record_t type?

    Thank you!

    Your record definition defines COL_1 as a date, so there is not need to convert a date value in this column.

    Remove the TO_DATE() function inside the loop.

  • Problem with date comparison

    I have a problem with the TO_YMINTERVAL('10-00') function.


    Thank you
    Bachan.

    Published by: bah on March 23, 2010 14:47

    Please do not double post.
    Problem with TO_YMINTERVAL('10-00') function.

    Stick to your original thread, as others have already tried to help you.
    Start a new thread on the same topic is a waiste of time, as already provided entries are lost to other readers...

  • Facing problem with date and time.

    * - Original title - BIOS

    Mr President.

    I have Compaq CQ2100IL Desktop pc for awhile I was faced with the problem of the date and time, so I posted this question to Microsoft, so they gave me a solution change my CMOS battery, so I did it, but despite this I get this error again then I tried and got answer to update my BIOS , I tried to find a version update on the HP site but did not find, so please help me in this matter.

    Hi Vikas,

    You can contact HP here: http://h10025.www1.hp.com/ewfrf/wc/contacthp?cc=us&dlc=en&lc=en&os=4062&product=3890751&sw_lang=

    Warning in the BIOS: BIOS change / semiconductor (CMOS) to complementary metal oxide settings can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the configuration of the BIOS/CMOS settings can be solved. Changes to settings are at your own risk.

    Let us know if you need assistance with any windows problem. We will be happy to help you.

  • Problem with data type 'Date' in Hyperion Planning V11.1.2.2

    Hello

    I created members with the date data type. However when I save the date, it disappears or comes up with a random date? One has encountered such a problem before?

    If so can you share the fix.

    Thanks in advance for your help.

    See you soon,.

    XXX

    Hello

    This problem is related to you not having is not a coherent framework for your type of date entry.

    So, go to the administration of the application and define the date format DD/MM/YYYY in the application settings and display options, under current default application settings. Then after doing that as a user, go to user preferences and display options and the date format, select the same. Or delete automatically detect them.

    I've seen this behavior if you detect automatically on the user's preferences

    Thank you

    Anthony

  • Problem with data services blackBerry Smartphones

    I want to use internet on my phone that by wifi, so obviosly I disabled data on implemented mobile network services. Problem is when I'm home or anywhere where I can connect to a wifi network, I get a message saying that there is no problem, and if it persists, I must contact my provider. I'm something wrong, is the solution?

    For some strange reason, you can now navigate with your data disabled Services.  It is a new feature in OS 7 (or 7.1, I don't remember which operating system, it has been introduced).  There was a time where you need to Data Services is enabled for surfing, even just with a Wi - Fi.

    However, I am happy that things are working for you now.

  • Updates cause problems with power settings

    Since the last update flash drive, my power setting is denied.

    It's on white screen after 10 min. of no activity. After viewing something with flash player, when my screen is supposed to be empty, it white for a split second just now and to do this, every 10 minutes (the time period I put). I then go into the display properties > screen saver > power settings and reset her turn off monitor option. Can you please give me a solution for this?

    I asked this question in January and got a response to uninstall and reinstall the Flash Player (if anyone from Adobe is preparing it - file for my application number has been 181390787)
    That fixed the problem for a while (until the next update), but now it is happening again.  I can't find a way to return to the customer support portal and submit the problem again.  I can enter the portal and read my case closed, but I can't open a new one.
    This gets really annoying, I discovered a lot of video tutorials that use Flash Player and watch You-tube frequently.  Whenever I discover something with Flash Player, I have to reset my preferences of power.  I really hope someone has a solution for this, what happens now to the computer of my husband as well.  The two systems are:

    Browser: Microsoft IE 8, operating system: Windows XP Professional SP3

    Thank you

    Maybe I finally found a solution, after weeks of tests!

    Also, if you do not have a selected screen saver, you must set its longer time than the monitor turned off.

    To do this, in control panel-> display-> screensaver-> choose a random screen saver-> don't set a loooong time (example 60 min, but more and more that your monitor off time)-> select any screen saver-> and save.

    I really do not know why, just do claim that there is a conflict between flash, screen saver settings and power, but this solution worked for me!

    Let me know if fix you the problem if you read this.

  • Problem with date in the canonical format

    Hi all

    I have a test with the sql data source:
    Select sysdate double;

    The result is the BI Publisher
    <ROWSET>
      <ROW>
        <SYSDATE>2009-05-07T14:56:19.000+02:00</SYSDATE>
      </ROW>
    </ROWSET>
    that is the date and time for the selection. It displays 14:56:19 as time what exactly is the time that I started the selection.

    Now, I create a template in Word only display the sysdate with parameters field:
    Type: Date
    Format: dd-MMM-yyyy hh: mm:

    and the result is (copied from the PDF):

    07-May-2009 * 12: 56:19 *.

    Any ideas how to solve this problem? It seems to me that the section '+ 02:00 ' to canonical format is interpreted as a modifier in the model...

    Thanks in advance :)
    Wolfgang

    Published by: Wolfgang on 07.05.2009 15:19

    You must set the timezome as

    America/New_York

    By default, it will be GMT.

    The area in which you are?

    There is the function, where you can specify the zone and get this time exactly.

  • Satellite M30X-102: problems with foreign settings

    I just bought the laptop M30X-102 of the Germany, but I am from Greece. So everything is in German (which I don't understand), the recovery disk, documentation... So I ask if I can find the revovery disk in English language. How can I re - configure my system with windows English? (I think format...) Thank you...

    Hello

    It is a shame. I know the problem, if you have lost a Toshiba Recovery CD, then you go to a Service partner and sign a solemn declaration (it is a restriction of M$) and you will get a new recovery CD.

    You could ask a Greek Service partner if it is possible to do?

    Hans Bye

Maybe you are looking for

  • Portege R500 with XP: server offline files do not work

    I have a strange problem with a brand new R500 with XP installed. Offline files does not work: I can copy files to the bottom of servers, but when I try to backup, I get an error "(XXX YYY) offline files: ZZZ is denied on ZZZ." where XXX is a samba s

  • 17-g153us Paviion: no drives

    A month ago I bought a new 17-g153us of Office Depot Pavilion as a mixed open-box unit for a price reduced. Unit works fine so far. There are no disks or the user manual in the box. Shouldn't there be at least a Windows 10 drive included, as well as

  • HP Pavilion 7760, wireless problem

    When I installed windows (8) my wireless stopped some programs and work were lost. I try to download driver HP802.11b but had no luck. Can you help me. I have a HP Pavillion 7760

  • Database MS Access Access on the remote computer (shared folder)

    Hello I need help. I did a program and it works fine on my computer, but several users will use program simultaneously, each on its own computer connected via a local area network to the computer of mine (data is on my computer in the shared folder).

  • Access to the library ITC Galliard?

    I would like to use the ITC Galliard font. I noticed that he Web ITC Galliard by Adobe.I noticed that it on the Adobe Web site. http://www.Adobe.com/products/type/font-licensing/additional-license-rights.htmlBut I don't have in my system and when I s