Date Format in Forms 4.5

For all the date fields in my Oracle Forms application i have set
a date format of dd/mm/yyyy. When entering data if the user does
not put the date in the above format, forms raises an error. I
want to be able to let the user enter the date in any format
and then convert it to the above format.
Have you seen any reusable scripts that do this? Has anyone
done this?
null

Hi Mala,
I wasn't sure as to what you meant by any format. Is it like
being able to enter a 2 digit year instead of a 4 digit year? Or
is it like being able to enter the day, month, and year in any
sequence? Try using the DD/MM/RRRR date format in the item
properties if the problem is just with the four digit year. This
allows you to enter a 2 digit year and depending on the value it
decides whether the 4 digit year begins with 19 or 20.
Hope this helps.
CV
Metro Infomation Services.
Mala (guest) wrote:
: For all the date fields in my Oracle Forms application i have
set
: a date format of dd/mm/yyyy. When entering data if the user
does
: not put the date in the above format, forms raises an error. I
: want to be able to let the user enter the date in any format
: and then convert it to the above format.
: Have you seen any reusable scripts that do this? Has anyone
: done this?
null

Similar Messages

  • Date Format on Forms 4.5

    Hi, we have a problem with a date format on Forms 4.5 .
    When we move a date item whit format mask 'DD/MM/YYYY' of a canvas in a global item, the format of date become 'DD-MON-YY'.
    When we read a content of this global from another module we lost the century of the year. Today we have serious problem Y2K like, because comparing this date with another like '15/03/1996' Oracle give us a value error.
    Note that the value of date inserted into the database is correct !!
    We thanks anyone can help us.
    Bye, Paolino

    You should download a document entitled
    'Date Handling in Oracle developer' from Oracle.com. Look for yk2 section.
    The file name is d2kwp3.pdf
    I suggest you use explicit date coversion:
    to_date('15-03-1996','dd-mm-yyyy')
    For example:
    :GLOBAL.v_date := null;
    :GLOBAL.v_date := to_char(sysdate,'dd-mm-yyyy');
    message(v_date) will show the century. You can later convert v_date to actual date.
    BUT, download the file and read the instructions for date handling for Forms 4.5
    good luck

  • Saving rights and date format in Forms - Acrobat Professional 8

    Hi Forum,
    I have designed a form for a client in Acrobat 8 Professional, and enabled viewing rights in Reader. There will be a lot of people using this form that are not in any way computer literate, and the client has requested that I do the following:
    1. I have set up the date format (in a date-of-birth field) to dd/mm/yy, limited to 8 characters, and a Tool-tip explaining how the date must be written. However, if you enter the date by mistake as 01/01/2001, it will be allowed, and appear as 01/01/20 (instead of coming up with an error message saying the 20 is wrong and it should be 01). I understand that to the form, there's nothing wrong with this date, but is there any way I can get a pop-up box to appear if either '19' or '20' appears as the year, and indicate to the form-filler that they should check what they've entered?
    2. They want the user, when the document is opened in Reader, to NOT be allowed the 'Save' feature, but only allow them to 'Save AS', so as not to overwrite the master document, which will be stored in a folder. The information in these forms are of a sensitive nature, so they don't want it getting saved by accident into the master document for anyone to see.
    I would be delighted if you were able to give me any ideas on the above.
    Kind regards,
    Liz

    For #1, you can, but it would involve some custom JavaScript programming to replace what Acrobat uses as the Keystroke/Format scripts.
    For #2, you cannot set up the document or Acrobat (Reader) to prevent a Save but allow a Save As. The best way to do what you want is to set up the appropriate file permissions using the OS's file system to prevent users from changing the file. A quick & dirty way is to simply set the file to read-only, but this is often easy for a user to undo.
    George

  • Date format on form submit

    After setting up the date formats with the developer toolbox, the help instructs you to insert KT_formatDate($row_rsRecordset['name_emp']) into your pages. This works great for displaying data, however I can't find what to do to fix the date format upon submitting a form. I am using the Insert Record server behavior and assume the KT_formatDate needs to be added there, but no matter where I put it it doesn't seem to work. Any ideas?

    Hi Megan,
    ADDT provides a variety of so-called "dynamic data" placeholders which can be used when inserting/updating records. In your case the placeholders in question are...
    {NOW} for MySQL date columns
    {NOW_DT} for MysQL datetime columns
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Date format in forms and reports in windows 7

    i have problem with date format in developer 10g and developer 6i
    it show date in this format 2011/25/1
    it sould be like this 25/1/2011
    how i can reslove this
    in xp it work fine

    Are you generating Forms and Reports from Oracle Designer, or using Oracle Developer tools directly?
    If this is a Forms question, try the Forms forum - Forms
    If this is a Reports question, try the Reports forum - Reports
    Either way, or with Designer, the problem is probably that you are allowing the date format to default instead of explicitly specifying a date format. Always specify the date format - you want "DD/MM/YYYY".

  • 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.

  • Date Format in Forms 6i

    I have been allocated a new PC.
    Where is the date format used by forms (6i) set up. I previously used to enter 20110519 in my applications and the application and it used to accept. It now does not accept the above format. Requires 'DD-MON-YYYY'.
    The nls_date_format on the database is setup as YYYYMMDD.
    Thanks

    It takes it's format from NLS_DATE_FORMAT in the registry (HKLM/Software/Oracle/YourHome). I think the default is dd-mon-rr if the key is not defined.
    I would say it is not good practice to rely on this setting. It is better to always have explicit data formatting in your forms itself.

  • Date Format in Forms- Need inputs.

    Forms [32 Bit] Version 9.0.4.1.0 (Production)
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    I have date type field (Db column of date type Date ) in a data block and its value is set based on a char field value in another block, in a trigger event.
    In a when-button-pressed trigger, I convert a char item value (from another block - :mod_plan.date_plan_to_zero, Eg say 05/27/2013) to to_date, something like below.
    trigger code
    begin
    :lims_flood_gates.plan_date := to_date (:mod_plan.plan_date_to_zero,'mm/dd/yyyy');
    end;
    When I run the form in debug mode, I see that plan_date (which is a date type field, with format mask MM/DD/RRRR) has a value '2013/05/27 00:00:00'...?! as soon as the above code is run.
    using TRUNC did not work. No matter what, the value when converted to date and assigned to the variable, takes the said format. I need to lose the time portion and need the date to be mm/dd/yyyy format.
    How can I do that?
    Thanks
    SR

    Try these in when-new-form-instance trigger:
    set_application_property(builtin_date_format,'mm/dd/yyyy');
         set_application_property(plsql_date_format,'mm/dd/yyyy');
         FORMS_DDL('ALTER SESSION SET NLS_DATE_FORMAT = "mm/dd/yyyy"');
    I don't know about that format mm/dd/rrrr I'd use y's instead.
    As others have said, a date in the database is a date-time so you can never really get rid of the time underneath the hood.

  • How to Chage the data format through Forms Personalization

    Hi Experts,
    I would like to do like,
    for example in the oracle form has two fields called
    start data(DD-MON-YY)
    end date(DD-MON-YY)
    but actullay i would like to have like
    start date(DD-MON-YY HH24:MI:SS)
    end date(DD-MON-YY HH24:MI:SS)
    It can be done through forms personalization?
    we are using Apps 11.5.8.
    Please help me to do it.
    Regards
    R.Sundaravel

    Try using FORMAT_MASK property in Forms personalization
    Property name - FORMAT_MASK
    Value - DD-MON-YYYY HH24:MI:SS

  • Date format problem in forms?

    I basically want the following.. in a date text item.
    1st Jan 2008
    if DD is 1 character and
    20th Jan 2008 if DD is 2 characters.
    not
    01st Jan 2008
    20th Jan 2008
    In SQL i can do this with date format 'FMddth Mon, YYYY'
    In forms though this does not work.. any ideas?
    Thanks

    Looks like the pl/sql version used by Forms has a flaw in handling the fm and ddth parts of the date format together.
    If it is a display-only column, you can change its datatype to char, remove the format mask, and instead, change the Column Name property to something like:
    to_char(date_column,'fmddth Mon YYYY')

  • Formscentral - how do I change required date format to long date (e.g. January 2, 2014) in a form field?

    Formscentral - how do I change required date format to long date (e.g. January 2, 2014) in a form field?  I can't seem to change it from the short date format.

    Hi,
    I would suggest you to change the form language to English (UK), Here are the steps:-
    1. Open your form in FormsCentral
    2. Clik on Options tab
    3. Click on Language and Formatting and check out the selection for Form Language and make sure English (U.K.) is selected and the default date format should be day/month/year.
    Regards,
    Nakul

  • I have a acrobat reader, can I import text delimited data format to a PDF Form so that it can auto fill into forms that was created? If not, what about FDF and XML data

    I have a acrobat reader, can I import text delimited data format to a PDF Form so that it can auto fill into forms that was created? If not, what about FDF and XML data

    Yes, you can do all of that via Tools - Forms - More Form Options - Import Data, if you have Acrobat.
    If you only have the free Reader then you can still do it, but it requires a script.

  • Date Format Issue with Interactive Form

    Hi, here is the scenario:
    -We just upgraded to SP17 from SP15
    -I'm using Livecycle Designer 8.0
    When we were on SP15, this was not an issue.  I was wondering if anyone encountered this problem and if so, if there is a workaround?
    I create an interactive form to start a guided procedure process.  Im passing the data from my desktop Interactive form to another callable object in GP to send an email with the PDF attached.  This all works correclty. 
    My date/time fields are set to type DATE with a display pattern of YYYY-MM-DD.  When I create the form in the GP administrator to my desktop and open the PDF, the date format is correct. However, when I submit the form to start the process, the incomming date fields to be mapped to my second Callable Object have change in format from "2009-02-18" to  "Wed Feb 18 00:00:00 EST 2009".
    This is true in the new form I receive via email, and also in NWA->monitoring->guided procedures when I check the instances.  The input mapping is already set to the false formatting.
    When I open the form from the second callable object with the incorrect date format (in designer), the date's display patterns are set to YYYY-MM-DD but are not being displayed as such.
    New discovery....I tried to create a Business Logic callable object and format the date.  I created a string input and date output and mapped them accordingly.  When I perform a "TEST" from the design time and use the input "Wed Feb 18 00:00:00 EST 2009", the string is automatically converted to 18/02/2009 in the output, which is what I want to occur.  The only problem is when I run the actual process, the same "Wed Feb 18 00:00:00 EST 2009" is being output instead of the 18/02/2009 in the TEST.
    Anyone have any ideas?
    Thanks.
    Edited by: Warren Clements on Feb 26, 2009 2:20 AM

    This test program might help...
    import java.util.*;
    import java.text.*;
    public class ExpandYear
        public static void main(String[] args) throws ParseException
         SimpleDateFormat sdf_2dyear = new SimpleDateFormat("MM/dd/yy");
         SimpleDateFormat sdf_4dyear = new SimpleDateFormat("MM/dd/yyyy");
         String test1 = "3/21/00";
         System.out.println("test1: " + test1 + " to : " +
                      sdf_4dyear.format(sdf_2dyear.parse(test1)));
         String test2 = "4/9/99";
         System.out.println("test2: " + test2 + " to : " +
                      sdf_4dyear.format(sdf_2dyear.parse(test2)));

  • Date format convert error in XML interface based Adobe interactive forms

    Hi experts,
    I am using XML interface based Adobe interactive form in Web Dynpro ABAP. The form just contains some date fields and numeric fields.
    When I test the WD Application, the date fields appear like 0000-00-00 at the first time. And then I set the form input disable, and get the XML from the form, at the same time I get the warning message, 'date format convert error'. By the way, I have set the edit pattern, display pattern and data pattern  of the date field to YYYYMMDD, but there seems no effect.
    Could you tell me how to set the default date format in date field Or clear the 0000-00-00?
    And another question, all of the numeric fields in the form appear like 0.0, how can I set it to empty when the form initialize?
    Best Regards,
    Guo Guo Qing

    Hi Chintan,
    Thank you for your reply.
    I have tried every possible changes on the Date field, locale, pattern. But still no effect. When the PDF come up in the WDA program, the date field is still '0000-00-00', and then I export the XML date of the form, there is also '0000-00-00' in the interface field.
    I can't clear the '0000-00-00' in initializiation event using javascript because if I need to open the form again, if I do this, the value user input could be cleared.
    I also try using Javascrip like this
    if this.rawValue == "0000-00-00"
    { this.rawValue = ""; }
    The code above can't clear the initializiation zeros too.
    Have you used the XML interface based online Adobe Forms? I have used XML PDF forms for output before, that's perfect. But the input forms seems so strange.
    Best Regards,
    Guo Guo Qing

  • PDF Print Forms - Date format

    Hi Frnds,
    This is my first time to work in PDF print forms.
    I am using standard interface and program to print my PDF forms. The PDF form alone is customised.
    I need to format my date as dd-mmm-yyyy. how can i do it?
    can i call a subroutine from a Zprogram in the context or interface?
    Can anyone help me to solve my issue? thanks a lot.
    regards
    Suganya.

    Hi Frnds,
    I got the date format solution.
    But I need to know whether we can use the subroutine of the program inside the interface or PDF forms as like script.
    I am using the std prgm RFKORD10_PDF and my customised PDF form. but i am getting an error as "Contradiction in form".
    Can anyone help me to solve the error?
    thank in adv
    Suganya

Maybe you are looking for