Different Date Formats in the same "From"

Hello
We used different date formats depending on the users language.
In a report this is simple to implement ... read the date field twice (in different formats dd/mm/yyyy and mm/dd/yyyy) and display only one based on the language.
I want to be able to do the same in a "form" which updates a date. In this case the about is not allowed.
Has anyone have solution for this using "APEX" forms or do a need to write a process to achieve this?
Thanks
Pete

Pete,
You don't specify what version of Application Express you're using, so I'll assume APEX 3.1 or later.
Are you setting the date format yourself, based upon the user's language?
1) You could have the application's language derived from Browser, and then APEX would automatically set the NLS_LANGUAGE and NLS_TERRITORY settings accordingly. Then, I would simply use 'DS' as the Application Date Format. For Date Pickers on a form, I would use item type 'Date Picker (use Application Date Format)'.
2) If you're already determining the date format yourself and you don't want APEX to do it for you, ensure that you are setting this value in an application item (e.g., PETE_DATE_FORMAT). Then, you could still use Application Date Format with a value of &PETE_DATE_FORMAT. (inclusive of the trailing period).
When you use Application Date Format, the conversion should happen automatically for you so that you don't have to code this yourself on the Form.
I hope this helps.
Joel

Similar Messages

  • Problem with SQL*Loader and different date formats in the same file

    DB: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    System: AIX 5.3.0.0
    Hello,
    I'm using SQL*Loader to import semi-colon separated values into a table. The files are delivered to us by a data provider who concatenates data from different sources and this results in us having different date formats within the same file. For example:
    ...;2010-12-31;22/11/1932;...
    I load this data using the following lines in the control file:
    EXECUTIONDATE1     TIMESTAMP     NULLIF EXECUTIONDATE1=BLANKS     "TO_DATE(:EXECUTIONDATE1, 'YYYY-MM-DD')",
    DELDOB          TIMESTAMP     NULLIF DELDOB=BLANKS          "TO_DATE(:DELDOB, 'DD/MM/YYYY')",
    The relevant NLS parameters:
    NLS_LANGUAGE=FRENCH
    NLS_DATE_FORMAT=DD/MM/RR
    NLS_DATE_LANGUAGE=FRENCH
    If I load this file as is the values loaded into the table are 31 dec 2010 and 22 nov *2032*, aven though the years are on 4 digits. If I change the NLS_DATE_FORMAT to DD/MM/YYYY then the second date value will be loaded correctly, but the first value will be loaded as 31 dec *2020* !!
    How can I get both date values to load correctly?
    Thanks!
    Sylvain

    This is very strange, after running a few tests I realized that if the year is 19XX then it will get loaded as 2019, and if it is 20XX then it will be 2020. I'm guessing it may have something to do with certain env variables that aren't set up properly because I'm fairly sure my SQL*Loader control file is correct... I'll run more tests :-(

  • URGENT: XML-SQL: Error parsing different date formats in the same XML file.

    Hi Everyone,
    I have a big problem while using the XML-SQL utility. I have a XML file with different date formats. I get exception like the one below.
    "oracle.xml.sql.OracleXMLSQLException: 'java.text.ParseException: Unparseable date:"
    And the XML file is :
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Info Key="ID">
         <Insert>
              <ID>1</ID>
              <BookingDate>10.12.2001</BookingDate>
              <OpeningTime>19:16</OpeningTime>
         </Insert>
    </Info>
    I have tried using different setDateFormat which is contrary.
    sav.setDateFormat("d.M.y");
    sav.setDateFormat("H:m:s");
    Can someone help me on the same.
    Thanks in advance.
    Subramanian.

    You might have to describe the columns as varchar then modify the table to the right format.

  • How to handle Multiple date formats for the same date field in SQL*Loader

    Dear All,
    I got a requirement where I need to get data from a text file and insert the same into oracle table.
    I am using SQL*Loader to populate the data from the text file into my table.
    The file has one field where I am expecting date date data in multiple formats, like dd/mon/yyyy, yyyy/dd/mon, yyyy/mon/dd, ,mm/dd/yyyy, mon/dd/yyyy.
    While using SQL*Loader, I can see Loading is failing for records where we have formats like yyyy/dd/mon, yyyy/mon/dd, mon/dd/yyyy.
    Is there any way in SQL*Loader where we can mention all these date formats so that this date data should go smoothly into the underlying date column in the table.
    Appreciate your response on this.
    Thanks,
    Madhu K.

    The point being made was, are you sure that you can uniquely identify a date format from the value you receieve? Are you sure that the data stored is only of a particular limited set of formats?
    e.g. if you had a value of '07/08/03' how do you know what format that is?
    It could be...
    7th August 2003 (thus assuming it's DD/MM/RR format)
    or
    8th July 2003 (thus assuming it's MM/DD/RR format)
    or
    3rd August 2007 (thus assuming it's RR/MM/DD format)
    or
    8th March 2007 (thus assuming it's RR/DD/MM format)
    or even more obscurely...
    3rd July 2008 (MM/RR/DD)
    or
    7th March 2008 (DD/RR/MM)
    Do you have any information to tell you what formats are valid that would allow you to be specific and know what date format is meant?
    This is a classic example of why dates should be stored on the database using DATE datatype and not VARCHAR2. It can lead to corruption of data, especially if the date can be entered in any format a user wishes.

  • Different HD formats on the same timeline

    Hi
    I am currently editing a 6 camera HD project in FC Studio 2, I have footage that is 5D 1920x1080i H264, other footage is 1920x1080p prores, and then I have some footage that is 1920x1080i and the compression is 1440x1080 frame rates are 30frms some are 15frms.
    My question: is there any way to edit the timeline with out needs only render. I have to synch clips by sound du to the fact that I have no matching TC so option p really wouldn't work. example some 10sec clips need 20 minutes to render, was just wondering if there was anyway to disable needs render until I finish the edit.
    I hope that I explained this easily enough, I have a feeling that I'm just going to have to suffer through it.
    Best,
    S

    You should probably convert all your media to a single format, like ProRes422,
    with all the same frame rate. Create a new FCP project with the converted media
    nicely imported and well-named.
    Then use Media Manager to make lower-resolution proxies for editing
    (FCP Manual IV-114). Start your mulitclip editing process by getting your
    sync perfect. Take some extra time to verify that you've got it figured out.
    As you edit using a multiclip, don't render the timeline. That disables
    the multiclip editing function. If you need to render to check out your
    work in detail, be sure to trash the render file before continuing to edit.
    When you're done with the edit, use Media Manger to reconnect your
    clips to the full-resolution version.

  • Different page formats in the same document

    Is it at all possible to create an InDesign-document with different page formats? Example: Page 1: 210x297 mm, page 2: 190x297 mm.

    only by using this:
    http://www.dtptools.com/product.asp?id=pcid
    robin
    www.adobescripts.com

  • Date format in the file datastore

    Hi,
    I have source as file, in which I have date column. While creating the file datastore, I have selected the datatype as date & have given the source date format in the format column and it is working fine.
    But I have source file coming with different date formats for the same column.
    My question is whether i can give multiple date formats in the format column??
    1. If yes how to separate the formats i.e with comma or semi-colon or etc...
    2. If No, thn how to achieve it. as I can use to_date function, but in that also I have to give all the date formats.

    Assuming Oracle is target database..
    Try this...
    1. In your file data store make the column as Varchar2
    2. In the interface mapping -- specify the following string in the target column mapping
    TO_DATE(REPLACE('2011-06-01','-',''),'YYYYMMDD')
    If your target column is date, Oracle will convert database proper format and insert the date..
    Hope this works out....
    Thanks
    Satish
    Edited by: user12826256 on 01-Jul-2011 02:15

  • I am having trouble getting a numbers spreadsheet to hold different formats in the same column.  A column with a date formatted heading will not convert to $ for the cells below.   Any suggestions would help.

    I am having trouble getting a numbers spreadsheet to hold different formats in the same column.  A column with a date formatted heading will not convert to $ for the cells below.   Any suggestions would help.

    Hi Wayne,
    Thank you for this response.  I have tried this but when I start enterring $ amounts some, such as $6.00, go in OK others such as $4.00 appear as a date ie 4 Oct 12.  
    Kind regards
    Paul

  • Capture scratch in different formats in the same project

    I was asked to edit several hours of wedding video that have two different formats in capture scratch. All are Quick time movie. Can I combine the following formats in the same project and sequences, or what steps do I need to take before I start the project? Any suggestions on the proper Easy Set Up "format" and "use" selection? Thanks for the help.
    First format-
    DV 720x480 (853x480), 16 bit interger(Big Endian), mono 48kHZ
    FPS 29.95
    Data rate 30.29 Mbit/s
    Current size 853x480 pixels (actual)
    Second format-
    DVCPro HD (720p60), 960x720(1248x702), 16 bit interger (Big Endian), mono 48 kHz
    FPS 23.98
    Data rate 49.11 Mbit
    Current size 1248x702 ixels (actual)
    Rob

    DVCPRO HD is not supported in FCE. The HD media is of course much larger than the SD media, so you have to decide how to handle that. Also the frame rate conversion might not be great.

  • For existing data in BI, client need to take a call to park the same from s

    hi,
    friends,
    For existing data in BI, client need to take a call to park the same from safety point view by copying the existing ODS  
    is it possible?if it is possible give me details.
    thanks&regurds
    sivaji

    hi,
    well when you copy an ODS only the structure is copied. to load the data you might need to create transformation and DTp to load data in the new ODS.
    You need to load data manually. Copying the ODS will only copy the structure.
    Regds,
    Shashank

  • TS3510 I have 3 different apple devices using the same Apple ID and would like to use FaceTime to call from one device to the other.  Do I need a different Apple ID for one of the devices in order to do that?

    I have 3 different apple devices (iPod Touch, iPad and MacBook Pro) using the same Apple ID and would like to use FaceTime to call from one device to the other.  Do I need a different Apple ID for one of the devices in order to do that?

    I found this on a related question in the Community:
    Yes you can do it. I do it with 4 different devices all using the same Apple ID.
    You need to associate different email addresses for each device in order to use those email addresses as the "contact at" email address. The reason the calls are dropping on you now is that what you are trying to do is like calling yourself on your own phone.
    You can also create new iCloud accounts on each device simply to use for FaceTime, but I'm guessing that the users of the other two devices have their own email addresses which will make this work for you quite easily.
    Take a look at this for more information.
    The seems to go against what Gail said and the issue you raised about buying dup apps was my first concern.  If this other post is correct, how to I set a different "contact at" in the iPod Touch?
    Goose

  • Is it possible to have 2 icloud (from 2 different iphones with different apple ids) on the same computer?

    I am inquiring as to if you can 2 different icloud accounts (that come from 2 different iphones with different apple ids) on the same computer. I would like both iphones to be able to back up to the same computer since we have different accounts/pictures/mail etc.

    Yes, if you create 2 seperate user accounts.

  • Can the SidHistory attribute be moved from one User account to a different User account in the same Forest/Domain?

    Hello,
    Can the SidHistory attribute be moved from one User account to a different User account in the same Forest/Domain manually with  Active Directory Users and Computers or with something like Powershell?  it would seem to me this is a safe operation.
    Thanks for your help! SdeDot

    Hi,
    In addition, please also take a look at the below thread:
    copy SIDHistory from one account to another in the same domain
    http://social.technet.microsoft.com/Forums/en-US/2ca8727c-b3fd-4ef8-9747-99295f0cd61c/copy-sidhistory-from-one-account-to-another-in-the-same-domain?forum=winserverDS
    Hope this helps
    Best regards
    Michael
    If you have any feedback on our support, please click
    here.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • How do I set up 2 different IPOD's on the same computer without having all the songs and games from the first one copy onto the second one?

    how do I set up 2 different IPOD's on the same computer without all the songs and games from 1 copying to the other?

    - Disable autosyncing: go to iTunes>Preferences>Devices and check the box that says "Prevent iPods ...syncing">
    - Connect the iPod and go to the music, apps and other panes for the iPod and check the boxes that say only sync the checked items.

  • How do I change the date format in Forms Central from mm/dd/yyy to dd/mm/yyy?

    I'm using Forms Central on a Mac and need to convert the US date format to the one used in Australia ie from mm/dd/yyyy to dd/mm/yyyy. I've tried Field properties and can't see any other options. Is there a quick fix somewhere?

    This is covered in the free documentation provided by Adobe for Acrobat JavaScript.
    Acrobat JavaScript documentation
    Use date objects
    Convert the date string to the date object, then use the util.printd method to reformat the date object as needed.

Maybe you are looking for

  • Show ALL all-day events in week view

    I am looking for a way to see ALL all-day events in iCal's week view. By default, it only shows up to two and a half events, and to see more you need to scroll. What's more, you don't see an out-of-view marker, so you don't always know you need to sc

  • Financial statement version-OB58 required in current settings

    Hello Group, I want to bring Financial statement version-OB58 in current settings like others such as OB08, OB52 and FTXP. Can anybody suggests me about how to bring in current settings wherin I can directly modify my FSV thru OB58 in production clie

  • Error with FMLE

    Hi, here is one error with: and error is: on Win7. Happen during the time of streaming. Here is some more information after click on Retry: Problem signature:   Problem Event Name:    APPCRASH   Application Name:    FlashMediaLiveEncoder.exe   Applic

  • Robohelp issues (folders & files are missing)

    Hi there, We're running Robohelp 7 HTML. We have 3 users using this product. All client PCs are running Windows XP (fully patched). They access their Robohelp project/documentation on a Windows 2003 dev server (also fully patched). Robohelp was worki

  • How do I restore Email inbox function?

    For the past week, my Ipad2 has not been displaying inbox Yahoo messages but shows spinning circle "checking for mail".  I can view messages in other mailboxes but inbox continues to freeze at "downloading 1 of 18".  I rebooted but find no other way