How to set date according to hjrah calender : nls_calender='English Hijrah

Hello frnds
how to set dates according to "English Hijrah".
I have set my database nls_calender='English Hijrah' ,
as many people aware that Hijrah dates are depend on moon ,
so I want to know how to set the calender for next month date in the database according to "English Hijrah"
I have set my database calender like this :
Example 3-17 NLS_CALENDAR='English Hijrah'
Set NLS_CALENDAR to English Hijrah.
SQL> ALTER SESSION SET NLS_CALENDAR='English Hijrah';
SELECT SYSDATE FROM DUAL;
You should see output similar to the following:
SYSDATE
24 Ramadan 1430
now I want to set the next month calender ...
I think my question is litte bit confusing

my db version 10.2.0.3
and above metalink id 121061.1 , I have tried from this document , but the change is not effected ,
the steps what I have down ;
1) shutdown the database
2)$oracle_home/nls/lxecal.nlt
i have created new file , and the contents is: syntax or algorithm
DEFINE calendar
calendar_name="English Hijrah"
DEFINE calendar_deviation
deviation_data= {
          <"MAY-30-2009 ad">:11
ENDDEFINE calendar_deviation
ENDDEFINE calendar
note: i have to subract 1 day from current month
3) run the file
$ lxegen
4) sql>startup
5) sql>ALTER SESSION SET NLS_CALENDAR='English Hijrah';
6) sql>select sysdate+2 from dual;
SYSDATE+2
30 Jamada El Oula 1430
but my expected output should be like this
SYSDATE+2
01 Jamada El Thaniah 1430
note: that is after 2 days from today I need 1 st of next month , but its showing 30 th of present month , bcoz according to arabic month , present month is for 29 days only...

Similar Messages

  • How to set data in rtf document?

    Hi friends,
    I have a rtf document can anyone suggest how to set data in cells of an rtf document?Is there any way?
    Thanks in advance..
    Regards ,
    Soumyanil

    Convert the resultSet from the db to a Object[][], let's call it result.
    Then create a JTable (jTable1).
    On the JTable you need to define the headers, and the data itself.
    You can get the headers from ResultSetMetaData. Convert these to an array again (headers).
    Now use these methods to create a model and set the model of the JTable.
    Model model =  new DefaultTableModel(result, headers);
    jTable1.setModel(model);That's about the basics.
    If you need more info, use at the tutorial at sun's homepage.
    How to use Tables:
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html

  • How to set date and time on apple tv

    how to set date and time on apple tv

    Assuming this is not the first time you have used your Apple TV
        1.    You might try restarting the Apple TV by removing ALL the cables for 30 seconds.
        2.    Also try restarting the router.
        3.    If the problem persists, try a restore, you may want to try the previous procedures several times before doing this.
    If this is a new Apple TV, it may also be that your network router is not allowing access to the timeserver, check that your router allows access over port 123.

  • How to update data according to row_number in sql

    hi,
    after deleting an item I need to update data according to row_number.
    in oracle database I have a code like this... working perfectly..
    update regitem set line_sn= LPAD(ROWNUM,2,'0') where doc_no='" & mydocno & "'
    how it will work in sql server...
    thanks..........

    There is an example at the below link which uses the Transact SQL ROW_NUMBER():
    http://stackoverflow.com/questions/6729616/sql-server-how-to-update-a-column-for-a-desired-row-number
    Paul ~~~~ Microsoft MVP (Visual Basic)

  • How to set Data Subsetting Parameters in MOBILE SERVER

    Hello.
    How can I set data subsetting parameters in Mobile Server with patch 5.0.2.10.0 NLS.
    From Mobile Server "Control Center" -> "Applications" it's not appears at left screen the following field:
    * Data Subsetting
    * Registry
    * Access
    * Files
    The browser appears this error message:
    "http://120.0.0.1:2000/webtogo/admin/console/apppropinfo?applicationvp=%2FMyApp"
    Have you any idea for this problem?
    Thanks All.

    Thanks Oliver,
    I have to go in control center in "applications tab" then i have the list of application and i edit one of them, on the left clic Data Subsetting it's not appears.
    The following it not appears:
    * Data Subsetting
    * Registry
    * Access
    * Files
    The browser (internet explorer) appears (at buttom on the left browser) this error message:
    "error http://127.0.0.1:2000/webtogo/admin/console/apppropinfo?applicationvp=%2FMyApp missing link".
    Whereas (Oliver's solution) in Mobile Server "Control Center" -> "Users Tabs"
    i have the list of users go and i edit one of them, on the left clic Data Subsetting then clic on the right pan platform and then i see but not parameter are definited.
    Help me please.

  • How to set date formate dd/mm/yyyy from portal.

    Dear Experts,
    We are implementing ESS/MSS, my query is under ESS applications, date format is showing mm/dd/yyyy, then iam trying to change  user language is English (United Kingdom), from portal end, then its showing dd/mm/yyyy.
    My query is that is there any other way to change date format and how to set user language is English( united Kingdom) for mass users.
    Thanks in advance,
    Regards,
    Mahee.

    Hi,
    Iam trying to upload below format..for mass users....
    [User]
    UID=<employeeid>
    Password=init@123
    FIRST_NAME=xxx
    LAST_NAME=xxx
    group=xxxx
    Language=en_GB
    [User]
    by changing launguage = English (United Kingdom),Now I can able see the require format...dd/mm/yyyy.
    Thanks and Regards,
    Mahee.

  • How to set Date in RFC call.

    Hi,
    I am trying to set date in structure when calling RFC.
    ICall = function.getImportParameterList();
    ICall.getStructure("IORDER").setValue(eDate,"EDATE");
    EDATE is date field in Structure in RFC with data type "D" and it is taking date in "dd.mm.yyyy"; formate.
    I am setting date  "dd.mm.yyyy"; in string format with eDate variable and it is throwing error.
    Can any one tell me How I can set date for "EDATE" field in proper format.
    Can I do JCO.TYPE_DATE date1 = new java.util.Date();
    And How I can convert date in acceptable format "dd.mm.yyyy"; for RFC.
    Thanks for your help
    Ashish

    Hi Sateesh,
    Thanks for your Answer.
    I used java.util.date and it works fine.
    Icall.getStructure("IOrder").setValue(new java.util.date(), "EDATE")
    I came to know that java date variabel can be passed without any extra conversion to ABAP type D variable .
    Is it OK? As I am setting  java date variable directly to ABAP type d variable in RFC.
    I have awarded you points for very helpful answer.
    Thanks.
    Ashish.

  • How to set  Date in input field by hard coding in application

    Hi all,
    1.I have to make a date(its my choice to set the date) to appear in input field which is date type.
    2.How to compare two numbers of type decimal. for example greatest of two numbers
    urgent requirement

    Hi
    Check the http://java.sun.com/j2se/1.4.2/docs/api/java/sql/Date.html
    http://java.sun.com/j2se/1.4.2/docs/api/java/util/Calendar.html
    Sample Code
    Date now = new Date();
          DateFormat df = DateFormat.getDateInstance();
          String s = df.format(now);
          System.out.println("Today is " + s);
    java.sql.Date descends from java.util.Date, but uses only the year, month and day values. There are two methods to create a Date object. The first uses a Calendar object, setting the year, month and day portions to the desired values. The hour, minute, second and millisecond values must be set to zero. At that point, Calendar.getTime().getTime() is invoked to get the java.util.Date milliseconds. That value is then passed to a java.sql.Date constructor:
        Calendar cal = Calendar.getInstance();
        // set Date portion to January 1, 1970
        cal.set( cal.YEAR, 1970 );
        cal.set( cal.MONTH, cal.JANUARY );
        cal.set( cal.DATE, 1 );
        cal.set( cal.HOUR_OF_DAY, 0 );
        cal.set( cal.MINUTE, 0 );
        cal.set( cal.SECOND, 0 );
        cal.set( cal.MILLISECOND, 0 );
        java.sql.Date jsqlD =
           new java.sql.Date( cal.getTime().getTime() );
    The second method is java.sql.Date's valueOf method. valueOf() accepts a String, which must be the date in JDBC time escape format - "yyyy-mm-dd". For example,
        java.sql.Date jsqlD = java.sql.Date.valueOf( "2010-01-31" );
    creates a Date object representing January 31, 2010. To use this method with a Calendar object, use:
        java.sql.Date jsqlD = java.sql.Date.valueOf(
                cal.get(cal.YEAR) + ":" +
                cal.get(cal.MONTH) + ":" +
                cal.get(cal.DATE) );
    which produces a Date object with the same value as the first example.
    Regards
    Ayyapparaj

  • How to set Date format and how to edit

    Hi all,
    I am supposed to select a date from calendar and put the date in a textfield in the format dd/mm/yyyy.
    Getting date from the calendar and putting it in textfield is not a big problem.
    Here I have to edit the date in the text field in such a way that clicking with a mouse on "dd" in the textfield dd part of the textfield should get selected and I should be able to edit date without affecting any other part in the textfield.Similarly clicking on the "mm" of text field,the mm part should get selected and i should be able to edit month without affecting other parts of the textfield and similarly the year field also.Here I should not be able to edit the "/" which is in between dd and mm, mm and yyyy.Is there any date format which i can set to textfield to achieve this.
    pls help me.
    this is urgent
    Thanx

    Can any one tell me how to make part of contents of textbox non editable and rest of the text editable???
    help me pls
    In the above dd/mm/yyyy format, "/" should be non editable and rest of the fields should be editable but can't be deleted.
    is it possible to achieve this...
    Pls respond............

  • How to set date format dd.MM.yy for chart time axis

    Is it possible to set default date format dd.MM.yy instead of MM/dd/yy in Flex charts without using label function ?
    In this case we do not know beforehand the length of the time span; it can be minutes, days or weeks.
    Setting locales in compiler options or locale settings for application seems not having any effect.

    For example
    - mx:Barchar
    - if time span is 4 minutes; time axis format is HH:mm and shows 10:00, 10:01, 10:02, 10:03 ; *this correct*
    - if time span is 5 days; time labels are automatically in MM/dd/yy format; question is how to change this automation
    to format dd.MM.yy
    - how to do this *without* dateformatter and *without* coding "if time span is is longer than day nyt less than week then use dd.MM.yy format" ?

  • How to separate date fields from t:calender ip?

    Hi All,
    I am using tomahawk calender in my jsf page.
    <t:inputCalendar id="startDate" value="#{bean.startDate}" renderAsPopup="true" popupDateFormat="MM/dd/yyyy" forceId="true" />
    Inside bean , I have
    Date startDate= new Date();
    when I print this startDate, I get
    Tue Apr 24 00:00:00 IST 2007
    I want to get date and month separately..how to do this?
    because in Date class getDate() method is deprecated...
    Thanks in advance...

    I do not have 2008, but you should be able to edit the subreport and run it seperate of the main report.
    add a formula to the sub to return the dates that are comming from the main report.
    Check the links to the sub-report.
    You should have two links, one for mindate one for max
    Check to see if you have a checkbox above a section that says
    Select data in subreport based on field.
    This advice may be way off for 2008.  but is valid in CRXI

  • How to set condition according to accumulative PO quantity?

    Hi,
    Is there a way to maintain purchasing price according to <b>accumulative purchase order quantity</b>??
    For example:
    Material : M6286412
    Vendor :  1600
    PurOrg.:  T001
    accumulative po quantity: 10000 pcs          ---> Price:10.0  US$  per 100 pcs
    accumulative po quantity: 30000 pcs          ---> Price: 8.20 US$  per 100 pcs
    accumulative po quantity: 31000 pcs above ---> Price: 7.00 US$  per 100 pcs
    Thanks and best regards.

    Hi,
    I am not sure either that I have understood the question.
    I have just seen your last repsonse relating to "Historical" PO values and so I think that you did NOT mean multiple lines on the asme PO.
    If you really mean scales that apply over a period of time and across many POs for the same item, then this is possible, but you have to use "Subsequent settlement".
    You set up the settlement agreement and specify the date range that applies and then set up the scales of discounts that you would achieve (you don't set up prices, you set up discount percentages).
    So you would set up the agreement as follows
    Over the period XX/XX/XXXX to YY/YY/YYYY the vendor will giove you the following discounts
    If you spend more than 111111 you will get an extra G% discount
    If you spend more than 222222 you will get an extra H% discount
    And so on.
    This is retrospective discounts and you can only ever use this type of solution because until all of the orders have been raised you cannot know which scale to apply.
    So if you mean an extra discount for spending more than X (on one material or across a whole range of items) over a set period, then yes, use subsequent settlement.
    Steve B

  • How to set date field in custom form to default to {NOW} plus one year.

    I am developing a subscription site. I have the custom form for inputing a users information. I have the subscribe date set up as a default field of {NOW} that works great.
    Now I need the renewal field to default to exactly one year from the subscribe date.
    Any help would definitely be appreciated.
    thanks in advance

    PHP? http://us2.php.net/manual/en/function.date-modify.php
    Alec Fehl, MCSE, A+, ACE, ACI
    Adobe Community Expert
    AUTHOR:
    Microsoft Office 2007 PowerPoint: Comprehensive Course (Labyrinth
    Publications)
    Welcome to Web Design and HTML (Labyrinth Publications)
    CO-AUTHOR:
    Microsoft Office 2007: Essentials (Labyrinth Publications)
    Computer Concepts and Vista (Labyrinth Publications)
    Mike Meyers' A+ Guide to Managing and Troubleshooting PCs (McGraw-Hill)
    Internet Systems and Applications (EMC Paradigm)

  • How to set "Date Modified" as default tab in Open File window

    Photoshop CS5.1
    When I click on Open File, the window that comes up has several default columns (FileName, Date, Size, etc).
    I can right-click on the tab bar and add "Date Modified" to the tabs, but I would like to have "Date Modified" be a default column whenever I open the file selector (and no matter which folder I open up).
    I cannot find a way to do this. I want to know the last date I modified a file, not when it was created.
    Is there a way to universally set this column as a default?

    Date modified always shows for me in Details view.
    I believe what columns are showing has to do with what columns you've set in Windows Explorer...
    Here's an excerpt paraphrased from my Configure the Windows 7 "To Work" Options book that may cover what you need:
    Open Windows Explorer...
    Navigate to a folder of the type you want to see (e.g., one containing your Photoshop images) and set Details view. 
    Make the window look the way you'd like future Explorer windows to look.  Reorganize Details view columns, e.g., to Name, Size, Type, Date Created, Date Modified, Attributes, etc. and size them so they fit.
    Choose Tools - Folder options, then click the View tab.
    Click [ Apply to Folders ] to apply the above settings to all folders.
    [ OK ] to exit.
    Hope this helps. 
    If the Date modified still doesn't stick for you, there are some other things I've done (and documented) to tweak the configuration of my systems that may help make my seeing the columns being set as shown in the attached image when I choose File - Open in Photoshop.
    -Noel

  • How to set date value in hidden item

    I have a form which has an date item, P1_MTIME , if I use data picker and an procedure (After header)to define its default , as
    begin
    :P1_MTIME := to_char(sysdate,'DD-MON-RR HH24:MI');
    end;
    Everything works fine, but when I change P1_MTIME to hidden, I can only get its value set to date, not hour and minutes, such as 2006-06-23 00:00, what I did wrong?

    Why not just have a hidden item with the ID so that when you create (insert) it is null and you insert sysdate and when you are editing an existing value and hence have the ID you update. This logic is easy to place in a page process (when the page is submitted)

Maybe you are looking for

  • ITunes on my iphone no longer connects to my airport express

    My macbook air (OS10.8.5) connects to the airport express without any problems. My iphone 4S (OS8.1) has lost the connection.No idea with which update, i just noticed. All three are on the same WIFI network. I turned the airport and iphone off and on

  • Right-Click context menu is gone

    Using Windows 7, Safari 4.0.4. I noticed recently that when I right-click on a link, I saw the link context menu and I used to be able to select "Open in new tab" This was great to use the mouse only to navigate, open new tabs, and surf around...usin

  • How to set gprs settings in i phone 4

    Dear Sir How to set GPRS settings in i phone 4 pls send me the details Thanks

  • List into Query

    This should be simple, but I can't wrap my head around it. A user inputs their zip code into a page. A list of nearby zip codes is returned from the database, separated by commas. No problem, that part's done. I want to take that list of zip codes an

  • Lightroom 4.0

    I got a gift coupon for a download of Adobe Photoshop Lightroom 4.0 but I just find the download for Lightroom 5. Where can I download Lightoom 4.0 or where is the link of it, please?