PJC Calendar setDate Wrong date format. Date change failed?

Forms 10.1.2 using forms demos pjc code.
The calendar pjc I added to my form works except I can't initialize it with a date. If I try to initialize a date it always produces 'Wrong date format. Date change failed.' error.
In a post-query trigger, I initialize the calendar's date using:
SET_CUSTOM_PROPERTY('PJC.CALENDAR',1,'setDate',to_char(:lead.date_received,'DD.MM.YYYY'));
In the java console, this yields:
Warning: Wrong date format. Date change failed.
Warning: Wrong date format. Date change failed.
I get the same result when using a hardcoded date like:
SET_CUSTOM_PROPERTY('PJC.CALENDAR',1,'setDate','01.12.2006');
What is the flaw in my incantation?

Hello,
This is the syntax used in the calendarpjc Forms demo:
    call the setDate method on the calendar PJC via the PL/SQL built in
    set_custom_item_property
    convert Oracle date to String recognised by Java
  procedure setDate(d in date) is
  begin
    set_custom_property(lGlobals.hCalendar,1,'setDate',to_char(d,'Mon DD, YYYY'));
  end;     Francois

Similar Messages

  • Calendar Control Date Format intermittently Changing

    I've noticed that every once in a while the Calendar Date format temporarily changes from DD/MM/YYYY to MM/DD/YYYY
    This is very problematic for me. Is there a place i can specify this so that it never changes?

    Resolved by changing Default value SQL to:
    SELECT EVALUATE('REPLACE(TRIM(leading 0 from TO_CHAR(%1,%2)),%3,%4) ' as varchar(20),MIN("- Dim_Date".DATE_VALUE),'MM/DD/YYYY','/0','/') FROM PRS
    This displays the default date in format 1/1/2009, the same format shown when choosing a different date from the calendar control.

  • Date format is changing in presentation variable

    Hello,
    I have a problem with date stored in presentation variable.
    I have simple prompt with calendar field (default date value is setted from repository or session variable to current date). Selected date is stored in PP_DATE presentation variable.
    I have simple report with title to show the content of variable PP_DATE.
    And now the problem.
    When I navigate to dashboard page with this report I will get date from PP_DATE variable in some format (there is difference when I use repository or session variable). After I will push the start button I will get another date format from PP_DATE variable.
    Screenshots are stored and described in this PDF: [PDF with screenshots|https://docs.google.com/uc?export=download&id=0B2LOPOBteIShMDRmYTJlYTItNmYyZC00ODdkLWE5NjktNzI1N2RlNWMwZjBk]
    There is difference between session and repository variable. When I use repository variable I will get 'TIMESTAMP .......' from PP_DATE variable, which is the default initializer in repository variable manager. I tried to delete default initializer, but I is automatically added after saving changes.
    When is the default value of prompt setted from session variable I will get another format of date from PP_DATE variable which refers to DATE_TIME_DISPLAY_FORMAT = "yyyy-mm-dd hh:mi:ss.mss" (from NQSConfig.ini). I have changed DATE_TIME_DISPLAY_FORMAT from standard value "yyyy/mm/dd hh:mi:ss" to "yyyy-mm-dd hh:mi:ss.mss" because I am reading some data from excel, where are dates stored in MSSQL format. But this is not the reason of my problem. I have the same problem also with standard DATE_TIME_DISPLAY_FORMAT.
    The result of this strange behaviour is that I am getting errors when I am doing some calculations (for example TimeStampDiff) with PP_DATE variable. I am getting error when I am navigating to dashboard page. Everything is ok after I will push the start button.
    Do you have some tips?
    Thank you

    Kishore Guggilla wrote:
    Hey,
    you are talking about so many pieces here seems..
    first letz break down your issues list..
    1. error, this is because of default date(using repository variable) used in prompt..
    2. using presentation variables in timetampdiff functions..
    3. showing variable in title list..
    we'll go through each issue..
    because, its' messed up..I think that everywhere is the same problem. So solving issue number 1 will solve my other problems.
    "1. error, this is because of default date(using repository variable) used in prompt.. "
    I want to use date prompt with default date value (from repository or session variable) and then use pp_date presentation variable from this prompt to filter my results.
    I would like to use repos. or session variables, I dont want to write some select to fill default date value in each prompt.
    I tried to change one date in initialization block from "trunc(sysdate, 'DD')" to "to_char(sysdate, 'YYYY-MM-DD')" because it is the same format as DATE_DISPLAY_FORMAT = "yyyy-mm-dd" in NQSConfig.ini
    And now it seems to be working now.
    I can use repository var. as default date value in my prompt and use date variable pp_date to filter my results. Report return result after navigation on it and after pushing Go button.
    Can you confirm me that date format in initialization block must be the same as DATE_DISPLAY_FORMAT = "yyyy-mm-dd" in NQSConfig.ini?

  • How do I stop the date format from changing to US format?

    I have an excel doc that I've converted to pdf.  In the process the date format changed to mm/dd/yyyy.  How do I stop this from happening?

    Hello,
    In a earlier attempt I marked all the date entries and labeled them as such (see screenshot of my German Excel):
    After that I converted the file by help of Excel(!) and I got this pdf file, which had all the entries formatted as produced in Excel before.
    Hans-Günter

  • Can date format be changed at runtime in patterLayout(log4J)

    Hi,
    I would like to know if the date format can be changed at runtime when i am using pattern layout. My application can have a particular date format. How do i specify that for the %d specifier in pattern layout, as i will only know the format at runtime.
    anjali

    Hello Mike,
    If your location is equivalent to the parsing schema you can use the APEX built-in substitution string *#OWNER#*.
    You still need to resort to Peter’s advices where dynamic table names are concerned. Bear in mind that in this case, you won’t be able to use the APEX built-in DML processes, and you’ll need to write your own fetch/insert/update/delete processes, which might be a lot of work. Working in a multi-user environment adds the complexity factor of concurrency control (lost updates).
    Regards,
    Arie.
    ♦ Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    ♦ Author of Oracle Application Express 3.2 – The Essentials and More

  • Changing date format (find/change?)

    Hello, I have little bit tricky question.
    I have document full of dates:
    01.01.2013
    02.01.2013
    05.01.2013
    And i want to change all these dates just to:
    01. Mon
    02. Tue
    05. Fri
    Is there a possibility to do that within Indesign? Thank you for your answers.

    OrcusDei wrote:
    Sandee, you got it exactly right. That's very unfortunate. It's pretty simple data formating and i'm surprised InDesign can't nativly do that O_O
    InDesign is not a data formating tool - nor is it a word processor. It's a layout tool for creating print/web ready documentation.
    It can do a lot of things - but it can't reformat your data.
    I would have done the same as you did - but I would have added a blank character style(create a char style based on None and don't select any options) to the numbers and created an index.
    http://www.kahrel.plus.com/indesign/index_charstyles.html
    Brought that to Excel and converted the text to the way it was supposed.
    Then prepare the "FindChangebyList" in the scripts panel.
    http://indesignsecrets.com/find-change-scripting-goodness.php

  • SQL*LOADER and date formatted data

    Hi there, I don't want to load complex things in my table - just a simple date....
    The control file is:
    load data
    infile 'c:\data\mydata.csv'
    into table test_table
    fields terminated by "," optionally enclosed by '"'
    ( sampledate, name )
    The mydata.csv file is:
    30-12-2003, Test1
    31-12-2003, Test2
    However this format is not being accepted by the database... I tried other combinations of date (eg, 30122003, 20-DEC-2003, 30/12/2004, etc...) but always had a 'data error'
    Thanks for any suggestions.

    Example:
    Control File for Case Study 3
    This control file loads the same table as in case 2, but it loads three additional columns (hiredate, projno, and loadseq). The demonstration table emp does not have columns projno and loadseq. To test this control file, add these columns to the emp table with the command:
    ALTER TABLE emp ADD (projno NUMBER, loadseq NUMBER);
    The data is in a different format than in case 2. Some data is enclosed in quotation marks, some is set off by commas, and the values for deptno and projno are separated by a colon.
    1) -- Variable-length, delimited, and enclosed data format
    LOAD DATA
    2) INFILE *
    3) APPEND
    INTO TABLE emp
    4) FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"'
    (empno, ename, job, mgr,
    5) hiredate DATE(20) "DD-Month-YYYY",
    sal, comm, deptno CHAR TERMINATED BY ':',
    projno,
    6) loadseq SEQUENCE(MAX,1))
    7) BEGINDATA
    8) 7782, "Clark", "Manager", 7839, 09-June-1981, 2572.50,, 10:101
    7839, "King", "President", , 17-November-1981,5500.00,,10:102
    7934, "Miller", "Clerk", 7782, 23-January-1982, 920.00,, 10:102
    7566, "Jones", "Manager", 7839, 02-April-1981, 3123.75,, 20:101
    7499, "Allen", "Salesman", 7698, 20-February-1981, 1600.00,
    (same line continued) 300.00, 30:103
    7654, "Martin", "Salesman", 7698, 28-September-1981, 1312.50,
    (same line continued) 1400.00, 3:103
    7658, "Chan", "Analyst", 7566, 03-May-1982, 3450,, 20:101
    Joel Pèrez
    http://otn.oracle.com/experts

  • Change the date format from mm/dd to dd/mm

    Is there any way to change the date format? Currently, my today screen, calendar app, etc is set to display dates as mm/dd. I'd like to change it to the UK format (dd/mm) but I have not been able to find a single method that works. I've tried themes as some have recommended but once I install them, it's still showing mm/dd.
    I'm not unfamiliar with upgrading the OS and "slimming" it down, so even a method that requires me to remove US resource files will be okay.
    Frankly I'm disappointed RIM doesn't provide users with a "Regional Settings" type option like in Windows to change the date format.
    Any advice would be most appriciated.

    Yes you can change Date format from mm/dd to dd/mm its done automatically by " Display language " selected :
    Go to Menu : Setup - choose  - Language and Input Methods - look for " Display Language" there is a  small window with down arrow , click the down arrow and ,  change from " English"  to " English (UK)  "for DD / MM ,date format , or change to       " English (US) "  for MM / DD date format.
    Hope this help .

  • Changing date format at reporting level

    Hello,
    Will u plz tell me how can i change the date format at reporting level?
    I want to display date in dd/mm/yyyy, but by default its showing mm/dd/yyyy.
    Delta is already loaded in the system, so i don't want to disturb regular data loading.
    Is there any way so that i can change the format of date.
    Plz help me out.
    Thanks,
    Regards,
    Steve

    Hi steve
    There r so many postings on the same topic
    go through these previous threads
    date format
    Date format
    u can find solution
    regards
    Ravi Kiran

  • Date format changes in the middle of a program execution

    In my C code I have a series of select statements.
    When I first get a session to the database I use the following command to set the date format
    alter session set nls_date_format = 'MM/DD/YYYY HH24:MI:SS'
    It works fine for a few queries. After a while during the program execution I see that the date format changes to 'DD-MON-YY' format. This results in a series of error in my code because I expect the date format to always be in the 'MM/DD/YYYY HH24:MI:SS' format.
    Any idea why the date format should change all of a sudden in the middle of the program execution.

    I second the idea that you should always use TO_DATE and TO_CHAR if you want to reliably convert between dates and strings.
    Without seeing your code, it is hard to say why your date format is changing, but the most likely reason is that you are changing users somewhere in the code. For example:
    SQL> show user
    USER is "OPS$ORACLE"
    SQL> SELECT sysdate FROM dual;
    SYSDATE
    11-JUL-2003
    SQL> ALTER SESSION SET nls_date_format='dd-Mon-yyyy hh24:mi:ss';
    Session altered.
    SQL> SELECT sysdate FROM dual;
    SYSDATE
    11-Jul-2003 10:15:12
    SQL> connect jtest/test
    Connected.
    SQL> SELECT sysdate FROM dual;
    SYSDATE
    11-JUL-2003TTFN
    John

  • How to change the date format in xml form?

    hi,
    How to change the date format in xml form?
    For example:  11/20/2008 3:00:03 PM    ->   11-20 03:00
    Any opinions greatly appreciated!
    Thanks.
    Edited by: ke wenxing on Dec 2, 2008 8:33 AM

    You could go to System - User Profile - Own Data would take you to the "maintain user profile screen"
    Click the defaults button and change the date format.This changes date format for all the dates in your login.

  • Change date format in EP when introduce values with "/" as date separator

    Hi experts,
    We have ECC 6 EHP3 with Enterprise Portal 7 SP 18. We instal BP_ERP5ESS
    1.31 SP 4.0, BP_ERP5COM 1.31 SP 4.0, BP_ERP5MSS 1.31 SP 4.0, SAP_ESS
    603 SP 4.12 and SAPPCUI_GP 603 SP 4.1
    We activate the Travel Management (FIN_TRAVEL_1) business function, so
    we use WD ABAP for travel expenses.
    The issue is when in the Portal, go to Travel and Expenses and create a
    new travel request or a new expense report and introduce the values of
    the date with "/" as separator. The system changes the date format, and
    change the days for months and months for days, DD/MM/YYYY change to
    MM/DD/YYYY. For example if we introduce 31/12/2009, the system change
    to 12/31/2009 and gives an error.
    If we introduce with "." as separator, 31.12.2009, it works fine, don´t change days for months, so it seems that is not a problem of language settings.
    Any idea?
    Thanks in advance,
    Manuel

    Hi,
    You can check the date formate in the portal.........
    log in by the Super Super give the user name ...........and check the details..........
    in there in the 1st ..view you can set the date formate..............

  • BEX: Changing date format from 'mm/dd/yyyy' to 'mon/yyyy'

    Happy Friday! I need to change the date format in my BEX query from a regular date format (dd/mm/yyyy) to display as 'JUN/2008'. Please note that I dont want to modify the date field but just need to display it month and year format in the bex query. Would truly appreciate a complete answer.
    Thanks

    Hi
    Check the first thread
    Hope this will solve your problem.
    How to change Date format in Bex to DD/MM/YYYY
    Check ur Windows or Excel settings. Try changing it in Control Panel->Regional Options->Date->Short Date format.
    change it in Control Panel->Regional Options->Date->Short Date format.
    Changing Date format in BEx & Web Application
    I Need to change Date Format in BEx report
    Regards
    M.A
    Edited by: M.A on Jun 27, 2008 10:12 PM

  • Date format and Alignment Change in the Excel Output.

    Hi Forum,
    Greetings to You!!!
    I was created one RTF format file. In this i have to display date format as (dd-mon-yyyy) in the excel output and also some data in the column have varchar2 and numbers. When i generate the output in html, pdf format using the xml file its coming fine.
    When i generate the output in excel format then date format is changing to dd-mon-yy and who have data in number format is automatically going to rtight alignment.
    But client need all the date output in the left alignment (dd-mon-yyyy) ..Please advice me ..
    Thanks & Regards,
    Nag.CH

    Hi Helios,
    Thanks for giving reply. We are using 11.5.10.2 Application . We are not using any ADI..I just run the xml file in my local system itself in excel format..Date format is coming dd-mon-yy.Not in Apps environment.
    Thanks,
    Nag

  • Date Format issue while creating date parameter

    While creating date parameter in the crystal reports 2008 with SQL Server 2008 database connection, I want to change the date format according to the specified format in the database.
    For ex: YYYY/MM/DD and MM/DD/YYYY
    This paramter will be editable in the viewer i.e. I'm going to provide option to the user to change start date and end date for data selection.
    Please help!
    Thanks in Advance!

    i found this
    i am trying to get the Enter Values screen for parameters to allow entry in a specific format 'DD-MON-RRRR' connecting to an Oracle database. I found that a hack is possible yet I would prefer a clean solution that wont need files changing on client machines. The hack involved changing some javascript files within the Crystal Reports directory. The problem is I now have the date from the calendar in the correct format but it displays the following prompt: Please enter DateTime in format "dd/mm/yyyy hh:mm:ss".
    Is there a way to supress this or better yet a way to specify date format without changing the javascript files of Crystal Reports.
    I am using Crystal Reports 2008 SP1.
    answer---
    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:

Maybe you are looking for

  • Adobe Presenter 9 navigation to webpage was canceled when click email hyperlink

    Windows 7, IE 10, Adobe Presenter 9 I have an email hyperlink created in PPT/Presenter that works fine within PPT.  However, when I publish the course to My Documents and view the presentation, once I click the email hyperlink, it opens an email but

  • Mail - Empty PDF Attachments when moved from 'Junk' (Hotmail)

    Hi I've been using Mail with Hotmail (IMAP) for some time; a recent update resolved the constant errors you'd get when deleting or moving emails between folders. However, if I receive a PDF attachement from an unknown sender, this goes into Junk.. I

  • Verifying the Correct Signature Updates, Management Software, and Version

    I am working today at a Client Site where I installed several months ago a Cisco IPS 4240 Sensor. The Sensor is currently running Version 6.0(3)E1. I am not certain how to proceed with respect to signature updates on this box. Under signature definit

  • Wherefor art thou KB2677070?

    I'm looking to deploy KB2677070 ( An automatic updater of revoked certificates is available for Windows Vista, Windows Server 2008, Windows 7, and Windows Server 2008 R2 ) with SCCM 2012 but it's not showing in Software Updates. Is this by design? Or

  • Macbook pro not automatically detecting usb wireless extender

    From a long distance I'm trying to help a friend get a Wireless Repeater setup on his Macbook Pro.  This is a Plug 'N Play piece of equipment that connects through USB.  When he plugs it into his Macbook Pro nothing happens and it's not detected at a