Date Format when NLS_CALENDAR = 'PERSIAN'

Does any body know in which format Oracle saves a date value in a table column
when NLS_CALENDAR is set to 'PERSIAN' ?

I think it stores in its own format but displays it according to the nls_calender parameter.
Anyway, I did this test (extension of Jameel's).
SQL> create table test (x date);
Table created.
SQL> select * from nls_session_parameters where parameter in ('NLS_CALENDAR','NL
S_DATE_FORMAT');
PARAMETER
VALUE
NLS_CALENDAR
GREGORIAN
NLS_DATE_FORMAT
DD-MON-RR
SQL> alter session set nls_calendar='PERSIAN';
Session altered.
SQL> select sysdate from dual;
SYSDATE
02 Amordad 1385
SQL> insert into test values (sysdate);
1 row created.
SQL> commit;
Commit complete.
SQL> select * from test;
X
02 Amordad 1385
SQL> alter session set nls_calendar='GREGORIAN';
Session altered.
SQL> select * from test;
X
24-JUL-06
SQL>

Similar Messages

  • Problem with date format when ask prompt web-intelligence

    Bo XIR2 with 5 SP. Instaled on Windows 2003 with support Russian.
    Inside BO every labels, buttons - use russian. But when invoke web-report and Prompt appear there is problem with date format.
    Looks like korean format of date 'jj.nn.aaa H:mm:ss'.  I see system settings of date in Win .. everything right
    What i have to do?
    Where i can change format date for bo?

    GK, try this...
    decode(instr(packagename.functionname(param1 ,param2),'2400'), 0, to_date(to_char(to_date(rtrim(packagename.functionname(param1 ,param2),'(PT)'), 'Month dd, yyyy "at" hh24mi'),'mm/dd/yyyy hh24mi'),'mm/dd/yyyy hh24mi'),
                                                                      to_date(to_char(to_date(rtrim(packagename.functionname(param1 ,param2),'(PT)'), 'Month dd, yyyy "at" "2400"')+1,'mm/dd/yyyy "0000"'),'mm/dd/yyyy "0000"'))-Marilyn

  • Error in date format when  I load a CSV file

    I am using Oracle G10 XE and I am trying to load data into my database from comma separated files.
    When I load the data from a CSV file which has the date with the following format "DD/MM/YYYY", I received the following error "ORA-01843: not a valid month".
    I have the NSL_LANG set to AMERICAN. I have tried the following command: "ALTER SESSION SET NLS DATE FORMAT="DD/MM/YYYY" and this does nothing. When I try to run "SELECT SYSDATE "NOW" FROM DUAL;" I get the date in this format "10-NOV-06".
    I will appreciate any help about migrating my data with date fields in format DD//MM/YYYY.
    Sincerely,
    Polonio

    See Re: Get error in date when I load a CSV file

  • Prblm in Date format when exported to excel

    Hi ,
    I had a problem when using the Export To Excel option from Portal. The data is getting fine populated in Excel but it's in General No Specific Format. But I wanted the data to be in its original format even when exported to Excel. Like...
    Country -
    Date Goods Delivered
    India----
    01.01.2001
    America----
    05.12.2004
    Singapore----
    12.04.2003
    Here the country should be of type TEXT FORMAT and Date Goods Delivered should be in DATE FORMAT(Here its visible as date but it's in General format)
    I am facing problem with date, it is displayed(01.04.2006) as shown above but it's in general format. I wanted it to be in date format at excel.
    I am in BW3.5 with portal version EP7.0
    Please suggest the solution and I had even gone through previous forum questions related to this but couldn't get.....the solution.
    points will be assigned...
    Regards,
    rudra.

    Hi,
    My end users requirement is to get all data in Standard format. We can't ask to select the date column and change the format in excel as there are more date fields(columns ).
    Using macro i had one problem,even though i am not sure..
    i can't enable the macro to get enabled in page load of export to excel as it is to be done at users end...
    If theres any possibilty of enabling....pls let me know
    Thanks for your valuable suggestions...
    Regards,
    rudra.

  • Wrong date format when setting Smart Album

    I've got my date format set to the standard UK settings, eg. DD/MM/YY, but in Aperture when I create a smart folder the date settings are in the US format of MM/DD/YY. Is there anyway I can fix this - I've got System Preferences correctly set to UK formats.

    bilbo_baggins wrote:
    I've got my date format set to the standard UK settings, eg. DD/MM/YY, but in Aperture when I create a smart folder the date settings are in the US format of MM/DD/YY. Is there anyway I can fix this - I've got System Preferences correctly set to UK formats.
    There are folders and there are smart albums but I don't believe there are 'smart folders'.
    If you could describe a bit of what you are doing to would be helpful in trying to answer your question.

  • Wrong date format when creating a universe based on a MS Analysis cube

    Hi,
    When creating a universe based on a MS Analysis 2008 cube the date objects from the cube are created in the universe with CHAR format when it should be DATE format
    I have tried to resolve the issue by modifying the date object in the universe with MDX but with little success.
    I wonder if it is an error in the cube and that it actually should be possible to get the correct date format from the cube when creating the universe automatically in the universe design tool.
    The date object is organised in a hierarchy.
    Any ideas? - both to resolve the issue by using MDX in the universe object properties or in the cube.
    The universe design tool is version 4.0 SP2 patch 5
    /Kim

    Oh I knew I was missing something. Ok version 2.
    I think in general this approach would work. I assumed you are starting from 1 and resetting to 1.
    There should be error handling and so forth that is not here. Probably some details need to be tweaked.
    So the key thing here AFAIK is to put the sequence reset in an autonomous procedure. Exactly how to do that may need to be modified.
    PS this version has a bug. After the reset needs to change the increment of the sequence back to 1.
    and I left that out. oops!
    /* testtrigger */
    /* previously:
    create table mytable (
    myprimary_key number(10) primary key,
    column1 number(2)
    create sequence mysequence
    start with 1
    increment by 1
    maxvalue 99
    nocache;
    create table mylastdate (lastdate date);
    insert into mylastdate(lastdate) values (trunc(sysdate));
    create or replace procedure reset_mysequence (in_correction number) is
    pragma autonomous_transaction;
    begin
    execute immediate 'alter sequence mysequence INCREMENT BY ' || in_correction || ' MINVALUE 1';
    update mylastdate set lastdate = trunc(sysdate);
    commit;
    end;
    show errors;
    create or replace trigger mytrigger
    before insert on mytable for each row
    declare
    tmpdate number(8) := null;
    lastdate_used number(8) := null;
    correction number := null;
    lastseq number(2) := null;
    begin
    if INSERTING then
    tmpdate := to_number(to_char(sysdate,'YYYYMMDD'));
    select to_number(to_char(lastdate,'YYYYMMDD')) into lastdate_used
    from mylastdate;
    select mysequence.currval into lastseq from dual;
    /* when this displays in the forum it shows lt gt as nothing on the screen
    so this should be lastdate not equal to tmpdate */
    if lastdate_used <> tmpdate and lastseq > 1 then
    correction := -(lastseq - 1);
    reset_mysequence(correction);
    end if;
    :new.myprimary_key := (tmpdate * 100) + mysequence.nextval;
    end if;
    end;
    show errors;
    Edited by: lake on Nov 30, 2010 10:39 AM
    Edited by: lake on Nov 30, 2010 10:52 AM

  • Wrong date format when import CSV files

    When you import a CSV file that contains fields with German date formats, these fields are displayed incorrectly.
    Example: Contents of the CSV file "01.01.14". After importing the corresponding cell in Numbers has the content "40178".
    A reformat the cell to a date format is not possible.
    How do I get the date in the new version of Numbers displayed correctly?

    It seems that there are more than a few problems related to import/export with non-US localizations.
    I, personally, don't have a solution to your problem. I started to adjust my Language & Region settings to test your problem but it was several settings, I didn't get it right, and I didn't want to mess up my computer so I set everything back to US/English.
    The only workarounds I can suggest are
    Insert a new column into your table and in it put a formula that adds the number to the date 01.01.1904.  Or,
    Edit the CSV in TextEdit to Replace All "." with "/".  This will work if "." is used for nothing else but these dates.
    I recommend the second one if it will work for you. Hopefully Apple is addressing problems such as the one you are seeing.

  • Possible to change date format when importing files into Aperture 3

    Just wondering if it is possible to change the format of the date from YYYY-MM-DD to YYYYMMDD when you rename files as they are imported into Aperture 3? I typically rename my files and insert my initials, date the photo was taken, sequence number, camera used and original file name. When I do this in Aperture 3, the date format used includes dashes. I would like to have the file renamed without the dashes in the date. Is this possible?

    You should be able to edit the format in the import presets. I have done this for folder stucture of imports, I believe you can do the same for the file renaming. At the bottom of the drop down box for file naming at improt should be an edit option which brings up the import naming presets, select the "YYYY-MM-DD" and remove the dashes.
    Matt

  • Date format when printing Maintenance Order

    Dear Colleagues
    When I print a Work Order, I'm getting the date format as DD-MM-YYYY
    I know that I can change this format in the User Parameters, however I need to modify a huge number of users.
    Question 1) Is there a way to setup the date format independent of the user parameters?
    Question 2) I'd like to have the date like this: JAN-01-2010. But I don't have this option in the User Parameters. Do you know how can I do it?
    Thank you for your help

    Davison,
       Its not possible using user settings. All you would need to do is copy the SAP SCRIPTForm  program(You can keep the Print program as such) and set date mask as required in SAP script text editor using command
    /: SET DATE MASK = 'MMMM DD, YYYY'
    Now the date variable value written out on the screen would be
    &DATE& -> JAN  01, 2010 
    You could revert to standard settings using command
    /: SET DATE MASK = ' '
    Regards
    Narasimhan

  • [11g] Date format when printing dashboard prompt

    Hello,
    i have a dashboard prompt with a between condition on a date format. When i display it on the dashboard, the format is perfect dd.mm.yyyy. But when i want to print the dashboard, the format is shown as yyyy-mm-dd. On the forum i found a hint about the localedefinitions.xml (Printer-friendly date format But there, the definition is ok
    <property name="dateShortFormat">dd.MM.yyyy</property> // default short date format for locale
    So, how can i change the format to dd.mm.yyyy when printing the dashboard. Any advice?
    Thanks
    Martin

    Davison,
       Its not possible using user settings. All you would need to do is copy the SAP SCRIPTForm  program(You can keep the Print program as such) and set date mask as required in SAP script text editor using command
    /: SET DATE MASK = 'MMMM DD, YYYY'
    Now the date variable value written out on the screen would be
    &DATE& -> JAN  01, 2010 
    You could revert to standard settings using command
    /: SET DATE MASK = ' '
    Regards
    Narasimhan

  • Date format when submitting concurrent program

    I am getting some odd behavior off of a new PC build when trying to submit a concurrent program. This occurs only on this PC. CPs using the PER_DATES_STANDARD value set will no longer accept the Oracle standard of '01-AUG-2011'. The following message displays:
    Please enter date value 01-AUG-2011 in correct format: MM/DD/RRRR
    I have looked at the 'Preferences' link in the Self Service area and also all of the 'DATE' profiles within Applications and I cannot find anything that would cause this. I even tried forcing a format for my user profile without success. Can anyone tell me where to change this format?
    We are using Apps version 11.5.10.2.

    scott_h wrote:
    Scott,
    Please see these docs.
    IE8 AND R12 SECURITY SETTING REQUIREMENT ON CROSS SITE SCRIPTING (XSS) [ID 1069497.1]
    Date Fields in Forms render like dd#mm#yyyy When Using Internet Explorer 8 [ID 1061707.1]
    Thanks,
    HusseinThanks to both of you for looking at this with me, here is what we found: the date format was dependent on how we logged into the Applications session. When logging in directly to the forms server bypassing the self-service page login, the date format within Applications was based on the OS format. When logging in through the self-service page, it was using the format specified in the Preferences link of the page. This is new behavior after our recent move to a secure https URL. Not sure why but we know the issue. I will look at those docs to see if they relate. Thanks again.This makes little sense - if this issue was linked to settings in Preferences, then the issue should be able to be replicated from any PC, not just a specific one.
    HTH
    Srini

  • Problem in Date Format when user chages the date format in preferences

    I want to generalize my code so that user can change what ever Date format he wants, I will get the date from the page in the format yyyy-mm-dd, and if the Date Format is
    set to MM/dd/yyyy in prefernces i need to use MM/dd/yyyy and if the Date Format is set to dd-Mon-yyyy in prefernces i need to use dd-MMM-yy, so my question is how to know what Date format is set in the preference so that i can have all the possible date format for inserting the date
    Thanks
    Babu

    Babu,
    The date format in OAF Pages is controlled by profile ICX: Date format mask.This profile can be set at site as well as user level for the individual users to set the Date format.
    But I would advice not to go for setting different profile values at user level, because i remember some old threads, where seeded Oracle pages fail, as code their is not generalised to handle date formats.
    If your are planning to have this in ur custom page, go ahead, but do check the entire flow is working fine for different values of this profile at user level.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Date format when searching

    Is there a way to apply the date format specified in the control hints of the entity object (or view object) also to the search mode in JClient, e.g. 'dd.MM.yyyy'?
    The only way I see at the moment is to add an ActionListener to the execute button and reformat the given date. Can this be done easier?
    Thanks a lot,
    Matthias

    You're not the only one.
    We're developing a system that may well use different date formats for different instances, so we can't hardcode the date format.
    Anyone got any clues?
    Are you there Oracle?

  • Date format when getting a PDF document with RESTful changes

    Hi all,
    I have a simple document with a date concatenation (as a string) for DateFrom - DateTo (for example "1/4/2015 - 30/4/2015")
    When I am in WebI I can see it in this format, even if I export it to PDF or Excel.
    However when I open it using BO BI 4.1 SDK RESTful in PDF or Excel, the date changes to "American format" like this : "4/1/2015 - 4/30/2015"
    Is there a way to avoid this, either as an option/parameter in the RESTful call or in the configuration of the BI server?
    Thanks

    Hello Enrique,
    Are you using the same user in Webi vs REST? I ask because the locale used is the PVL (prefered viewing locale) one.
    You can override the locale using a http header : X-SAP-PVL. But, you have to be very careful because you have to set the same header value in subsequent RESTful calls.
    Indeed, internally, we handle one document instance for each used locale.
    Regards,
    Anthony

  • Problem with data format when getting from a database

    I'm trying to get a date from the database but the problem is that it also return the time. I have tried to change the format of the date when retrived from my database but it still returns the time.
    Any solutions?
    String theDBDate = rset.getString("date_of_call");
    SimpleDateFormat formatterdate = new SimpleDateFormat ("EEE, MMM d, ''yy");
    String date = formatterdate.format(theDBDate);
    theCalls.setDateofCall(date);// callin my Call Class to store the date which is a string

    Hi could any help me? I have this problem for the last few day. I gave up on it for a while but today I'm trying to get to the botton of this problem.
    I connecting to an oracle database but it return back the date & time but I want only the date.
    Here my code.
    Locale currentLocale= new Locale("en","GB");
    Date today = new Date();
    DateFormat formatter = DateFormat.getDateInstance(DateFormat.DATE_FIELD,currentLocale);
    String theSQL = (" Select * From Call ") ;
    Statement stmt;
    stmt = conn.createStatement();
    ArrayList CallsList = new ArrayList();
    ResultSet rset;
    rset = stmt.executeQuery(theSQL);
    while(rset.next() == true)
    Call theCalls = new Call();
    theCalls.setCallNo(rset.getInt("call_no"));
    theCalls.setUsername(rset.getString("username"));
    theCalls.setCompID(rset.getString("comp_id"));
    theCalls.setTimeofCall(rset.getString("time_of_call"));
    Date todaydate = rset.getDate("date_of_call");
    Timestamp theDBDate = rset.getTimestamp("date_of_call");
    SimpleDateFormat formatterdate = new SimpleDateFormat ("EEE, MMM d, ''yy");
    String date = formatterdate.format(theDBDate);
    theCalls.setDateofCall(date);
    theCalls.setPriorty(rset.getString("priorty"));
    theCalls.setProbCat(rset.getString("problem_cat"));
    theCalls.setProbDesc(rset.getString("problem_desc"));
    theCalls.setCloseDate(rset.getString("close_date"));
    theCalls.setProbSol(rset.getString("problem_sol"));
    theCalls.setStatus(rset.getString("status"));
    theCalls.setAssign(rset.getString("assign"));
    CallsList.add(theCalls);
    conn.close();
    return CallsList;

Maybe you are looking for

  • IOS 8.3 and blank App/iTunes Store

    Since I updated to iOS 8.3  I can't connect to Apps store or Exchange server.  I tried logging out of my app store and itunes  thinking it just needed to reconnect and now I can't get back in.  Also some apps are not working at all.  Anyone else havi

  • IC WinClient 5.0 - Case ownership issue

    Hello, We have an issue where we need to do the following: If an agent answers an email, if the customer responds to that email, then this response should be automatically assigned to the original agent. I was thinking that we might be able to use th

  • Oracle Fusion Admin Training ----

    Hi , I am new to SOA and i will be undegoing Oracle Fusion Admin Training from this week . Please let me know the kind of work that will be involved in it And how would it be in a long term perspective for me in career . Thanks and Regards , Mohan

  • Can't set up iCloud on my mac

    SInce migrating from one Macbook Pro to a new one, iCloud account will not work in mail. I go through the set-up, enter my username/password, it is accepted, says wait, choose what services you want to use and I do, inlcuding mail, but it doesn't app

  • Web Client Refresh

    When using a web client, everything works fine the first time in. If I use the "refresh" button or "back" button and then try to load any web client I end up with a blank screen. The "need to load files" dialog comes up, the files download and then d