Showing Buddhist Year (Thai year) in Apex

Hello,
I'm trying to migrate my application to Apex. The problem is, I can't find a way to display the year component of 'Date' column as Buddhist year (B.E.). The Bhuddist year is simply Gregorian year + 543, e.g. 2011 is 2554 in this system.
I have looked over Globalization setting but couldn't find anything related to culture setting ..
Is there any way to safely add 543 to the year component just before it's displayed to the user? And subtract 543 from the input just before it's saved to the database?
Many thanks!

Fac586 and Andy,
Thanks for pointing out about NLS_CALENDAR setting. At first, I tried to set the NLS_CALENDAR using Windows' environment var, but somehow the Oracle XE refused to start. After removed this everything works okay again. Then I followed your advice to add some Application Process to set/unset the NLS_CALENDAR before and after Page Show / Submit. It seems to work but strangely, I randomly got logged out of Apex from time to time as well. Remove the process and restart the instance seems to fix this.
I finally test it again by adding the same PL/SQL code as page-level processes. It seems to work OK without random logout since then. This are some results to share in case someone may find it helpful.
Without setting NLS_CALENDAR (with Application Language set to Thai):
NLS_CALENDAR     GREGORIAN
NLS_COMP     BINARY
NLS_CURRENCY     ฿
NLS_DATE_FORMAT     DD-MON-YYYY
NLS_DATE_LANGUAGE     THAI
NLS_DUAL_CURRENCY     ฿
NLS_ISO_CURRENCY     THAILAND
NLS_LANGUAGE     THAI
NLS_LENGTH_SEMANTICS     BYTE
NLS_NCHAR_CONV_EXCP     FALSE
19-ก.พ. -1998     40-09085     นาย     ณัฐวุฒิ     กุลนิรันดร     01-ม.ค. -1987     ชาย     โสด     ไทย     ไทย     พุทธ     
NLS_CALENDAR set to 'Thai Buddha':
(Setting NLS_CALENDAR seems to affect the date format as well)
NLS_CALENDAR     Thai Buddha
NLS_COMP     BINARY
NLS_CURRENCY     ฿
NLS_DATE_FORMAT     "วันที่" dd month EE yyyy
NLS_DATE_LANGUAGE     THAI
NLS_DUAL_CURRENCY     ฿
NLS_ISO_CURRENCY     THAILAND
NLS_LANGUAGE     THAI
NLS_LENGTH_SEMANTICS     BYTE
NLS_NCHAR_CONV_EXCP     FALSE
วันที่ 19 กุมภาพันธ์ พุทธศักราช 2541     40-09085     นาย     ณัฐวุฒิ     กุลนิรันดร     วันที่ 01 มกราคม พุทธศักราช 2530     ชาย     โสด     ไทย     ไทย     พุทธ     
Thanks again for your helps!
Natthawut
Edited by: natthawut on Jan 18, 2011 8:37 AM
Edited by: natthawut on Jan 18, 2011 8:38 AM

Similar Messages

  • List View in ios8 on iPhone only shows 1 year

    List view in ios8 on iPhone only shows 1 year. Earlier events are there, and you can see them in other views, but not in List View. Any ideas?

    OK, I solved it. Here is the solution if you have precisely the problem I had.
    1.  On the iOS device: delete the iCloud account.
    2.  Go to the Apple ID website and make sure the ONLY email there is the me.com email and that it is set as primary. If you Mac.com email is listed as a secondary email THIS will cause the problem. So delete the Mac.com email.
    3.  Log back in to iCloud on the iOS device.
    Only you wanted to use the Mac.com address and not the me.com one, you could follow the above instructions just swapping me and Mac.

  • How to show current year and last year sales in a WEBI Report

    Hi Guys
    How can show current YEar Sales in one column and Last YEar Sales in the other column based on a user prompt for the Current YEar Column.
    For Example is user enter 2010 for Year how can i show a Column for Sales-2010 and Sales 2009.
    Thanks

    If you can modify your Universe add an object named New Object Last Year whose SQL is:( yourTableName.Year + 1)
    Then in WebI create two distinct queries in your query Pane. In the first one you could do this:
    Query 1:
    objects: Year, Sales ... etc.
    filters:   Year Equal to '1. Prompt Year'
    Query 2:
    objects: Year, Sales ... etc.
    filters:    New Object Last Year Equal to '1.Prompt Year'
    Then in your report you can drag each object on their respective columns.
    If you don't want to use two distinct queries, use one like this:
    Query 1:
    objects: Year, Sales ... etc.
    filters:        Year Equal to '1. Prompt Year'
                 Or
                      New Object Last Year Equal to '1.Prompt Year'
    Edited by: PadawanGirl on Jun 23, 2011 6:28 PM

  • Depreciation Simulation report does not show future years Depreciation

    Hi experts
    Depreciation Simulation report (S_ALR_87012936) does not show future years simulated depreciation for depreciation areas other than 01.  I try to run for 7 years in future, other then area 01, all other areas only show the current fiscal year and zero for future years even though there are values.
    Any ideas would be much appreciated.
    Edited by: AG on May 5, 2011 1:21 AM

    Hi
    Please check settings of Simulation Varinat at IMG> Financial Accounting>Asset Accounting>Information System>Define Simulation Variants for Depreciation Reports. Check settings for depreciation ares for which you are facing issue.
    Hope this helps!!
    Murlidhar Khatri

  • Show the years in a drop down list on page

    Hi All ,
    I'm using jdev 11g .
    I want show the years in a drop down list .can any one suggest me . i want to use as vo attribute .
    thanks advance

    have list of years as static list vo or .. from a read only query.. -> countryvo
    map this vo to the actual VO as a view accessor..
    seelct the attribute that you want to show as list.. then sellect LOV.. choose 'choice list' shuttle the atrributes.. and you are done..

  • In iTunes, why does music which has been ripped from a best-of CD continue to show the year of the CD release even after I change the year to the year of the song release in playlists?

    I often rip music from CDs of artists that released songs in the '60s and '70s. When I rip the music, in iTunes it shows the year of the CD release, usually something in the '90s or 2000s. I change the year in 'Get Info' to the correct year, and it changes it fine. However, after a while, it will show the old year again, the year of the CD. This is a problem because I like to arrange playlists based on song years, and this messes with that.
    Tell me: is there a way to permanently fix the reverting year problem? Also, when I spot a song that this has happened to, when I click on 'Get Info', the correct ear is still in there, and when I hit 'OK' it changes back. This is really frustrating...

    In some cases the original iTunes Store metadata seems to be given preference over personal changes. If you are seeing this then
    Go to Edit > Preferences > Store and turn off
    Show iTunes in the Cloud purchases
    Share details about your library with Apple
    On any iOS device go to Settings > Music and turn off
    Show All Music
    Close and reopen iTunes and/or reset the device and you should see your version of the metadata for each track rather than the original store data. If not it should reset as you play through content, or you can use my script UpdateTagInfo to force iTunes to read the current data from the tags.
    tt2

  • Showing the Year in JSpinner

    Hi, using the SpinnerDateModel and JSpinner, how do I show the Year as in 2003,2004... format in the JSpinner?
    Please advise. Thanks

    Thanks for replying.
    I tried using the DateEditor, but it gave me Illegal pattern character 'Y'. Below is my code.
    JSpinner spnYear = new JSpinner();          
    SpinnerDateModel model = new SpinnerDateModel();
    spnYear.setModel(model);
    JSpinner.DateEditor editor = new JSpinner.DateEditor(spnYear,"YYYY");
    By the way, I only want to show the Year. The above code will give me the mm/dd/yyyy hh:mm. How to set that at the very first, it will display 2003?
    Please advise. Thanks.

  • After updating to OS 10.9.2 Safari shows two year old Bookmarks?!

    After updating to OS 10.9.2 Safari shows two year old Bookmarks.
    My Sysad reconstructed the actual bookmarks this morning from the backup.
    Than I tried to delete a single bookmark and right now Safari shows again the two years old bookmarks?!

    Happen to me too. Looks like a Bug. Installed 10.9.2 and it turned on Safari in the iCloud Sytem Preferences.
    Thank god I had a backup. And then my wife logged into the same computer and it messed them up again.
    I wish I knew where the iCloud bookmark file was. I've tried goggling it, ut no luck.
    So If at one point in time if you turn it on it uploads the bookmark file somewere in the cloud, then you turn it off then change your bookmarks to something differnet it's OK. Just don't turn it on again.
    Hopefully the bug was on the software update!

  • On my time share site the date selector is showing old years not 2011,12/13

    when i try and enter a date on a drop down box it shows the years 2006/7 and 8 not 2011/12 and 13

    It the date (year) correct on your computer?

  • How to show whole year in iCal

    iCal is configured to shoe day, week and month but can one get iCal to show a whole year, like a wall calendar. If not then perhaps there is some add on software that will do this?
    Grateful if anyone can advise
    thanks

    Aside from the fact that it takes third party software (no longer available) to do this, I don't really see what the need would be. Time, date and month change often enough that the would be necessary to keep up with but the year? Every 365 days?
    Besides, you can click the time in the menu bar and it will show you the year.

  • Power View in SharePoint only shows current year.

    I have a customer using the Power View add in for SharePoint 2013 based on SQL 2014.   I have created a BISM object that connects directly to an OLAP cube.
    When I build reports or Pivot tables against this object they work fine.  However when I build dashboards in Power View they only show the current year's data
    We do have a default date dimension which forces for some reason Power View to only display current year. Therefore the slider doesn’t work since it has only current year / date showing up.
    After removing the date dimension in one of our dev. cubes, Power View showed all dates and we were even able to uses the date animation with slider worked fine.
    We don't want to do this in production however, because many of our reports rely on the default date dimension.
    Has anyone come across this or know a workaround?
    SG

    I am going nuts! I had selected 'Analysis Services' instead of 'Microsoft BI Semantic Model for Power View'

  • Does anyone know how to show the year in the menubar?

    I've never been able to do this. YouControl.app did do it but sadly the developer is no longer supporting it.

    Aside from the fact that it takes third party software (no longer available) to do this, I don't really see what the need would be. Time, date and month change often enough that the would be necessary to keep up with but the year? Every 365 days?
    Besides, you can click the time in the menu bar and it will show you the year.

  • Is there a way to show album year in "albums view" in iTunes?

    I have around 1500 albums and I like viewing them all in my albums view with the cover showing. I have sorted them by year which works, but when you are scrolling through them all the years are just bunched together (they are in order though). In previous versions of itunes I would be able to see "2013" and then all albums from that year below... then "2014" then all albums below etc. If I scroll through all my albums back to 2003 for instance, its hard for me to tell what year I am in. So is there a way to get the year to show? I know I had this in the past working, but maybe this feature was removed in itunes 11. thanks for any input!!

    Thanks! Header was the word I was looking for. Maybe they will bring this feature back in an update or in Itunes 12.
    Thanks!

  • Chart horizontal axis show whole year

    Hi All,
    How to display whole year month as horizontal axis even if no data? for example, currently I have data for FY13 up to Jan 13, no data for Feb 13, Mar 13, Apr 13, May 13 and Jun 13 yet, in the chart it will automatically showing horizontal axis from July 2012 to Jan 2013, but I want to show horizontal axis from July 2012 to June 2013, if not yet data, line stops.
    Thank you,
    Ling

    Hi,
    Apart from the option mentioned above, you can also create an right outer join in the BMM layer of the RPD.
    This is only recommended if the data expected by you is the same in all the reports using this combination of the tables.
    Thanks,
    Vineeth

  • Can I show one years events on my Curve

    The User guide seems to indicate that the calendar will only show events for the display period, i.e. day, week or month.  I plan further ahead than this and would like to be able to have the calendar show events as far ahead as one year. Can this be done (I currently have one month on display but if I scroll forward to next month there are no events shown, even though they are on my Google calendar, which I am synced to)

    Will not  work, most likely for BootCamp.  Windows drivers for hunderbolt will only create digital (DVI), not analog (VGA).
    Run Windows in Parallels/other-VM-software where OSX runs the Thunderbolt port, or by a USB-VGA adapter.

Maybe you are looking for