Date formats incompatible of apex between weekly and daily calendar

I use the Apex ajax calendar to view activity.  My user has noticed that the date format changes between the weekly and daily life, that is to say the 07/08 (MM/JJ) and 08/07 (JJ/MM) respectively.  Is this a bug or is at - there somewhere some control of date format?

I use the following to call pages

Weekly

JavaScript:apex.widget.Calendar.ajax_calendar ('W', 'same'); void (0);

Every day

JavaScript:apex.widget.Calendar.ajax_calendar (', 'same'); void (0);

Thank you

Drew

Request Express 4.2.3.00.08

Hello

You can check your calendar template (shared components-> models-> calendar or go to the page that contains the schedule-> tree of shared components-> choose the calendar), if it uses the same date format for weekly view masks and every day? You will see variables substitution as #MM #, #DD # and so on.

Concerning

Patrick

Member of the APEX development team

My Blog: http://www.inside-oracle-apex.com

APEX Plug-Ins: http://apex.oracle.com/plugins

Twitter: http://www.twitter.com/patrickwolf

Tags: Database

Similar Questions

  • How to convert Date format in the Apex?

    Hi all

    I created an element of Apex Date Picker as "yyyy-mm-dd", now when they select this date picker, that must be converted in "day, month, DD, YYYY".
    I trired like that but it does not work, can anyone help me to find things to do.

    Under article, we have free will.

    Default value: to_char (to_date (: P1_ENG_DATE, 'dd-mm-yyyy'), ' day, month DD, YYYY ")
    Deafult value as type - PL/Sql.

    Thanks,
    David...

    Hello

    You can set the date format level of application, then you don't need to specify the format each time.

    for this go to "Modify the Application Properties"-> globalization

    Here you can specify the format of date of application.

    Thank you
    Tauceef

  • Date of the Monday of the week and year

    Hi gurus,

    I have the data for the week (eg.52) and year (eg. 08) and I need to get the date of the Monday of the week (December 21, 2008... IE 52nd week of 2008.)

    Pls know me the solution for this sql statement...


    Thank you
    Shashi...

    Hi, Shashi,

    user588757 wrote:
    Hi gurus,

    I have the data for the week (eg.52) and year (eg. 08) and I need to get the date of the Monday of the week (December 21, 2008... IE 52nd week of 2008.)

    Pls know me the solution for this sql statement...

    Thank you
    Shashi...

    Surely you meant December 22, 2008, No 21.
    Assuming that you are talking about ISO dates, where week 1 starts the Monday closest to January 1:

    TRUNC ( TO_DATE ( :year_txt
                    , 'YYYY'
                    )
          , 'IY'
          ) + (7 * (:week_val - 1))
    

    where: year_txt is a string and: week_val is a number.

    TRUNC (dt, "IY") is attached to the Monday of the week 1.

  • Confusion between primary and original calendars in Outlook/Windows Live Calendar

    I use the outlook connector to retrieve my mail electronic hotmail in outlook (2007).  Calendar works fine in outlook, but when I accept a meeting request from a person the appointment is stored in my 'original' calendar  I would like to delete the 'original' timeline, but outlook will not let me.  Furthermore, I would like to get meeting appointments must be stored in my outlook calendar.  When I look at Windows Live Calendar there of course only the "original calendar".  Suggestions on how to return to a single Unified calendar?

    Outlook:

     

    http://www.Microsoft.com/Office/Community/en-us/flyoutoverview.mspx

    Office newsgroups

    http://www.Microsoft.com/Office/Community/en-us/default.mspx?DG=Microsoft.public.Outlook.General&lang=en&CR=us

    Discussions of general issues of Outlook.

    They will help you with your Outlook questions when repost you in the Office discussion groups above.

    At soon Mick Murphy - Microsoft partner

  • Perform calculations between the weeks and categories

    Given this example, if I calculate the difference between each week the intention and filing to show in the lines of the plan again and again filing?
    Row#     SEM     STUDENT_LEVEL     COLLEGE     PROGRAM     STATUS     Y3W2     Y3W3     Y3W4     Y3W5     Y3W6
    
    1     40     GR     BN     BMA-SJ     14.Intend     132     132     137     139     139
    2     40     GR     BN     BMA-SJ     17.Deposit     100     111     115     114     117
    3     40     GR     BN     BMA-SJ     20.New Intend     0     0     0     0     0
    4     40     GR     BN     BMA-SJ     21.New Deposit     0     0     0     0     0
    For example, the value displayed in Col: Y3W3 line #4 deposit must be the result of line Y3W3 2 - Row 2 Y3W2. Digitally: 111 minus 100 = 11.
    Tier 4 after that calculation should look like:
    4     40     GR     BN     BMA-SJ     21.New Deposit     1     11     4     0     3
    If the change is negative, then we would show 0.

    There are also some Calc percentage within the week and the categories and between weeks and years, but if understand us this, we can hope that use to others, so we won't post the part yet.

    Here's the query portion and sampling data. The sample data are summarized from the level of detail:
    WITH ADMLIST AS 
    (
    SELECT 1 AS WEEKNO, 2009 AS YEAR,          40 AS SEM, 
        'GR' AS STUDENT_LEVEL,  'BN' AS COLLEGE, 'BMA-SJ' AS PROGRAM, 
        '14.Intend' AS STATUS,  139  AS TOT
    FROM DUAL UNION ALL 
    SELECT 1 , 2009, 40, 'GR', 'BN', 'BMA-SJ', '17.Deposit',    94 FROM DUAL UNION ALL 
    SELECT 1 , 2009, 40, 'GR', 'BN', 'BMA-SJ', '20.New Intend',  0 FROM DUAL UNION ALL 
    SELECT 1 , 2009, 40, 'GR', 'BN', 'BMA-SJ', '21.New Deposit', 0 FROM DUAL UNION ALL 
    SELECT 2 , 2009, 40, 'GR', 'BN', 'BMA-SJ', '14.Intend',    132 FROM DUAL UNION ALL 
    SELECT 2 , 2009, 40, 'GR', 'BN', 'BMA-SJ', '17.Deposit',   100 FROM DUAL UNION ALL 
    SELECT 2 , 2009, 40, 'GR', 'BN', 'BMA-SJ', '20.New Intend',  0 FROM DUAL UNION ALL 
    SELECT 2 , 2009, 40, 'GR', 'BN', 'BMA-SJ', '21.New Deposit', 0 FROM DUAL UNION ALL 
    SELECT 3 , 2009, 40, 'GR', 'BN', 'BMA-SJ', '14.Intend',    132 FROM DUAL UNION ALL 
    SELECT 3 , 2009, 40, 'GR', 'BN', 'BMA-SJ', '17.Deposit',   111 FROM DUAL UNION ALL 
    SELECT 3 , 2009, 40, 'GR', 'BN', 'BMA-SJ', '20.New Intend',  0 FROM DUAL UNION ALL 
    SELECT 3 , 2009, 40, 'GR', 'BN', 'BMA-SJ', '21.New Deposit', 0 FROM DUAL UNION ALL 
    SELECT 4 , 2009, 40, 'GR', 'BN', 'BMA-SJ', '14.Intend',    137 FROM DUAL UNION ALL 
    SELECT 4 , 2009, 40, 'GR', 'BN', 'BMA-SJ', '17.Deposit',   115 FROM DUAL UNION ALL 
    SELECT 4 , 2009, 40, 'GR', 'BN', 'BMA-SJ', '20.New Intend',  0 FROM DUAL UNION ALL 
    SELECT 4 , 2009, 40, 'GR', 'BN', 'BMA-SJ', '21.New Deposit', 0 FROM DUAL UNION ALL 
    SELECT 5 , 2009, 40, 'GR', 'BN', 'BMA-SJ', '14.Intend',    139 FROM DUAL UNION ALL 
    SELECT 5 , 2009, 40, 'GR', 'BN', 'BMA-SJ', '17.Deposit',   114 FROM DUAL UNION ALL 
    SELECT 5 , 2009, 40, 'GR', 'BN', 'BMA-SJ', '20.New Intend',  0 FROM DUAL UNION ALL 
    SELECT 5 , 2009, 40, 'GR', 'BN', 'BMA-SJ', '21.New Deposit', 0 FROM DUAL UNION ALL 
    SELECT 6 , 2009, 40, 'GR', 'BN', 'BMA-SJ', '14.Intend',    139 FROM DUAL UNION ALL 
    SELECT 6 , 2009, 40, 'GR', 'BN', 'BMA-SJ', '17.Deposit',   117 FROM DUAL UNION ALL 
    SELECT 6 , 2009, 40, 'GR', 'BN', 'BMA-SJ', '20.New Intend',  0 FROM DUAL UNION ALL 
    SELECT 6 , 2009, 40, 'GR', 'BN', 'BMA-SJ', '21.New Deposit', 0 FROM DUAL 
    )
    SELECT sem,
           student_level,
           college,
           program,
           status,
    --       max(CASE WHEN WEEKNO=2 AND YEAR=2007 THEN TOT END) AS Y1W2,
    --       max(CASE WHEN WEEKNO=3 AND YEAR=2007 THEN TOT END) AS Y1W3,
    --       max(CASE WHEN WEEKNO=4 AND YEAR=2007 THEN TOT END) AS Y1W4,
    --       max(CASE WHEN WEEKNO=5 AND YEAR=2007 THEN TOT END) AS Y1W5,
    --       max(CASE WHEN WEEKNO=6 AND YEAR=2007 THEN TOT END) AS Y1W6,
    --       max(CASE WHEN WEEKNO=2 AND YEAR=2008 THEN TOT END) AS Y2W2,
    --       max(CASE WHEN WEEKNO=3 AND YEAR=2008 THEN TOT END) AS Y2W3,
    --       max(CASE WHEN WEEKNO=4 AND YEAR=2008 THEN TOT END) AS Y2W4,
    --       max(CASE WHEN WEEKNO=5 AND YEAR=2008 THEN TOT END) AS Y2W5,
    --       max(CASE WHEN WEEKNO=6 AND YEAR=2008 THEN TOT END) AS Y2W6,
           max(CASE WHEN WEEKNO=2 AND YEAR=2009 THEN TOT END) AS Y3W2,
           max(CASE WHEN WEEKNO=3 AND YEAR=2009 THEN TOT END) AS Y3W3,
           max(CASE WHEN WEEKNO=4 AND YEAR=2009 THEN TOT END) AS Y3W4,
           max(CASE WHEN WEEKNO=5 AND YEAR=2009 THEN TOT END) AS Y3W5,
           max(CASE WHEN WEEKNO=6 AND YEAR=2009 THEN TOT END) AS Y3W6
    FROM ADMLIST
    GROUP BY sem,
             student_level,
             college,
             program,
             status
    ORDER BY 5;

    Hello

    You can get the difference from one week to the next (or 0) using the analytical LAG function, like this:

    GREATEST ( tot - LAG (tot) OVER ( PARTITION BY  status  -- and maybe other columns, like sem, student_level, ..., too
                                           ORDER BY      year
                          ,          weekno
                        )
           , 0
           )     AS dif
    

    Corresponds to the data you posted really what is in your tables, or is it the result of an earlier stage?

    If it's really in your tables, and then instead of select of your tables, select in a UNION of
    (a) your table except the lines where status = '21.New' file
    (b) your table, once again, with status ='21.New deposit "and the numbers of dif (as shown above) in the column tot.

    If the data you posted is a partially digested form of your RAW files, then dif can probably be incorporated into the digestion process.

    In any case, calculate dif until you rotate the data.

  • Date formatting to_char - truncate issue zeros

    Hello

    I have used this date formatting in an APEX application, but I noticed that the problem also occurs when you run a simple script in the database.

    The query is:

    Select

    TO_CHAR (sysdate, 'fmDay, GFMD fmMonth AAAA HH:MIPM'),

    TO_CHAR (sysdate, ' HH:MIPM of MON-DD-YYYY "")

    of the double

    The problem occurs when the minutes have a zero in it, in the example that I have attached, it was 14:05, and it shows as 14:05

    https://plus.Google.com/u/0/photos/104459804528712563956/albums/5958573459391223345/5958573462256341170?PID=595857346225...

    Is there a reason that this is happening? I am unable to use the combination I've used? I really want the full date with month and day names.

    Version of DB: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0

    Amanda.

    Just add fm with the time format:

    SQL > select

    2 to_char (sysdate, 'fmDay, GFMD fmMonth AAAA fmHH:MIPM')

    3 double;

    TO_CHAR (SYSDATE,'FMDAY, FMDDFMMONTHYY)

    ------------------------------------

    Wednesday, December 18, 2013 09:03

    Concerning

    Girish Sharma

  • date format conversion

    Hello

    I have the date format in the table as below and now I need to convert the date format YYYY-MM-DD hh: mm :)

    data type of column is varchar2 (20)

    1993-06-24 - 14.15.06.785408 (note: hours, minutes, seconds, milliseconds are separated by.) (dot)

    1991-11-05 - 11.32.17.045702

    Can someone help me please.

    Thank you!

    Hello

    3058870 wrote:

    Hello

    I have the date format in the table as below and now I need to convert the date format YYYY-MM-DD hh: mm :)

    data type of column is varchar2 (20)

    1993-06-24 - 14.15.06.785408 (note: hours, minutes, seconds, milliseconds are separated by.) (dot)

    1991-11-05 - 11.32.17.045702

    Can someone help me please.

    Thank you!

    Do not store information on dates in a VARCHAR2 column. It's simply to request data not valid, complicated, inefficient code and runtime errors.  The columns DATE, or, if necessary, fractions of a second TIMESTAMP.

    To convert strings from one format to another, you can always use TO_DATE to convert any format they are dates and then use TO_CHAR to generate a new string, in any desired output format.

    In this case, it seems that you just want to lose the split second, change the 3rd indent to a space and change points to colons.  You can do the following:

    SUBSTR (datatype, 1, 10).

    ' '                      ||

    REPLACE (SUBSTR (datatype, 12, 8)

    , '.'

    , ':'

    )

    If you would care to post CREATE TABLE and INSERT statements for some sample data and accurate results, you want from these data, then I could test this.

    Check out the Forum FAQ: Re: 2. How can I ask a question on the forums?

    You could do all the work in a single call REGEXP_REPLACE, but it is probably more complicated and less effective.

  • Get the number of month, week and day between 2 dates

    Hi all

    Is it possible to display the number of months, weeks and days between 2 dates? by using only the SQL or PL/SQL...

    Entry:
    Date: October 1, 2010
    Date: October 19, 2010

    I want output like below (assuming starts the week from Monday to Sunday in oracle).

    October 1, 2010-(since it's in the middle of the week)
    October 2, 2010-(since it's in the middle of the week)
    October 3, 2010-(since it's in the middle of the week)
    40. (4 Oct-10 Oct falls into the 40th week of the year)
    41. (11 Oct-17 Oct falls into the 41st week of the year)
    October 18, 2010-(since it's in the middle of the week)
    October 19, 2010-(since it's in the middle of the week)


    Note: If there is a month between the date, the number of the month should be displayed.
    End of the month, the remaining date included with a full week, then the week of the year number should
    displayed. After posting the week, remaining dates should be displayed as it is...


    Appreciate your help...



    Thank you.
    Fox.

    You mean something like this...

    SQL> ed
    Wrote file afiedt.buf
    
      1  WITH t AS (select date '2010-09-27' as fdate, date '2010-11-21' as tdate from dual)
      2  --
      3  -- END OF TEST DATA
      4  --
      5  select dt2
      6  from (
      7        select dt,
      8               case when days_of_mn = days_in_month then 'Whole: '||to_char(dt,'Month')
      9                    when days_of_wk = 7 then 'Week: '||to_char(dt,'fmWW')
     10               else to_char(dt, 'DD-fmMonth-YYYY')
     11               end as dt2
     12              ,row_number() over (partition by
     13                 case when days_of_mn = days_in_month then to_char(dt,'Month')
     14                                  when days_of_wk = 7 then 'Week: '||to_char(dt,'fmWW')
     15                 else to_char(dt, 'DD-fmMonth-YYYY')
     16                 end order by dt) as rn
     17        from (
     18              select dt, wk, mn, days_in_month
     19                    ,count(*) over (partition by wk) as days_of_wk
     20                    ,count(*) over (partition by mn) as days_of_mn
     21              from (
     22                    select fdate+rownum-1 as dt
     23                          ,to_number(to_char(fdate+rownum-1,'fmWW')) as wk
     24                          ,to_number(to_char(fdate+rownum-1,'fmMM')) as mn
     25                          ,to_number(to_char(last_day(fdate+rownum-1),'fmDD')) as days_in_month
     26                    from t
     27                          connect by rownum <= tdate-fdate+1
     28                   )
     29             )
     30        ) x
     31  where rn = 1
     32* order by dt
    SQL> /
    
    DT2
    -----------------
    27-September-2010
    28-September-2010
    29-September-2010
    30-September-2010
    Whole: October
    Week: 44
    Week: 45
    Week: 46
    19-November-2010
    20-November-2010
    21-November-2010
    
    11 rows selected.
    
    SQL>
    
  • I created a custom and registered with a specific name date format. However, when I open a new worksheet, my saved format does not display in the menu drop-down? Am hoping that I don't need to create the same format for each new sheet?

    I created a custom and registered with a specific name date format. However, when I open a new worksheet, my saved format does not appear in the menu drop-down? Am hoping that I don't need to create the same format for each new sheet?

    You must save the spreadsheet containing the new date as a model format and use this custom template for each new spreadsheet where you want that this date format personalized at your disposal.

  • Slow data transfer between PC and Agilent N3300A

    Hello

    I use a N3300A of Agilent connected via Serial-> USB to a PC running LabVIEW 2012.

    In my tests, I found that the time required to recover data from is very long. The example below, supplied with the drivers, I measured each of the subVIs 3 who read the instant action takes about 11.7 seconds to complete.

    Therefore, this example VI does not work out of the box, I need to increase the maximum time constant and to also connect the two subVIs away. In otherwise, a time-out occurs, the device no longer and needs a reboot to be controlled by the PC (have not found another more elegant way to get the control).

    Is it possible to speed up the process of data recovery? And as a bonus question, how to control remotely again the instrument after a timeout place?

    Thank you for your time

    What is the data format?  Instruments can usually transfer using ASCII or binary.  Binary would be more effective.

    GPIB would fill a lot faster (can reach 1 Mbps).  At 9600 baud, you run 1200 b/s, excluding the start and the stop bits.

    Assuming that the binary format to 4 bytes/data point, your serial communication should take about 3.3 seconds.  Assuming ASCII with 12 bytes/data point (pure guessing here), which is 10 seconds.  11 seconds for a transfer is therefore not out of the question.

  • A user needs administrative rights on their computers to change the formats of date under the sign of the region and Lanaguage?

    Customize the format of long date in DD/MM/YYYY under control panel > region and language > Formats > more settings > Date > long date is available for a user with administrator privileges, but is available for a non-administrative user?

    Since posting this question, I was able to test this scenario with the help of my computer SCIENCE Department.  It seems that all our portable business have a configuration of standard domain without administrator privileges by default account.  I turned on my laptop users and was able to change the long date in DD/MM/YYYY format proving you don't need administrator privileges to change the long date format.

  • Can not put date format as "yyyy-MM-dd" for Chinses (PRC) and English (United States) at the same time. Win 7 PRO

    Step 1. I choose Chinese (PRC) in the list format (region and language) and set the format of 'YYYY-MM-dd' date, apply. It is ok.

    Step 2. I choose English (United States) in the list format (region and language) and set the format of 'YYYY-MM-dd' date, apply. It is ok.

    Step 3. I chose the back to Chinese (PRC) in the format list (region and language), format date is reset to "YYYY/M/d", it is not ok for me.

    How can I set the format of a two language. ?

    Because I use the siemens industry software, when to change language it will read the date format different from the language that is displayed. My client want to see the same format.

    I tested under Win XP, it may set the format even in different languages

    Hi Jerry,

    Thanks for posting the request in Microsoft Community Forums.

    It is normal that you can not set the same date format for both languages at the same time. You will need to use the drop-down list to choose a date format customized if necessary.

    Hope this information helps.

  • Data transfer between PC and device

    Hello

    I need an advisor. I was wondering what would be the best way to transfer data from the PC to a connected device?

    Here's the scenario: I need to download a large amount of data from a web service. To do this, I use a small application installed on the user's PC. Once the data is downloaded and converted, the application converts it to an xml file. I would push this file or string with the XML itself to the device that will be connected through the USB port.

    In addition, the scenario reversed: I can access the PC to the device file system?

    Thank you

    Daniel

    Hi Daniel,.

    You just need to synchronize data between PC and device and device to the PC. I'm wrong?

    There are 2 ways to do it.

    (1) Intellisync APIs, (Director of office requires)-net.rim.device.api.synchronization

    (2) USB connection. (Doesn't require no Office Manager)-use streamConnection

    You will get the USBsample in samples of JDE. I guess that as the example of synchronization is in examples of JDE applications.

    Please reply,

  • Convert the Period_Name in GL_JE_Lines table to a date format and then come back year

    I'm working on a data model BI Publisher and I try to convert the Period_Name in GL_JE_Lines table to a date format and then return of the year.

    The sql below works in 11i, but I can't make it work in Fusion.

    to_char (to_date (l. )) period_name , ' MON-RR ' ),'YYYY')

    Any ideas?

    Hi Jennifer,.

    To_char (sysdate, 'DDMONYYYY') in BI Publisher does not return a correct results due NLS_DATE_FORMAT/DATE_LANGUAGE settings.

    According to the standards of the I18N, NLS_DATE_LANGUAGE in the database is still hardcoded to NUMERIC_DATE_LANGUAGE. NUMERIC_DATE_LANGUAGE 'MY' in a date format mask is an integer, so you see the correct value.

    You're not supposed to publish direct SQL with fixΘe format masks (unless it's some sort of canonical format used in internal processing, including the end-user will not be), you should return language digital date to the mid range and then make the formatting of y.

    Workaround

    Try adjusting the NLS_LANGUAGE in SQL data model to override formatting from of the

    Data base and values of the Session, for ex: select to_char (sysdate, 'MON-DD-YYYY', 'NLS_DATE_LANGUAGE = AMERICAN') of double;

    I got this Oracle support after lifting a SR.

    Thank you

    Rahul.

  • format change of date by default in the oracle database and applications at all times.

    Hello

    my current date format is DD-MON-RR and I would change to MM/DD/RRRR permanently. (not at the session in the database level).

    And please suggest me how to change in application level. - is changing the profile ICX option: Date (at the site level) format mask is sufficient?

    Please suggest.

    Thank you

    Ramanantsoa

    PL see the section called "Release Date in shape" in MOS 393861.1 Doc - also see MOS Doc 1520540.1

Maybe you are looking for

  • I can't connect to Ebay more - he continues to go back to the sign in screen

    As soon as I sign in Ebay, it goes back to an empty sign in screen. This only happens in Firefox. IE is OK.

  • Printer spooler does not work. Printer registry file corrupted

    My printer HP Deskjet F2430 does not work. The print spooler is not running. I can't stop and restart services. The registry file is damaged. No printer is displayed in the printers and faxes Control Panel site. How can I clean up the corrupt registr

  • Name of wrong version in Blackberry World

    Hi all I use blackberry-apkpackager for packaging apk-> bar. Original manifest.XML has two fields defined for the version: (example) Android: versionCode = "14".Android: versionName = "1.30.0. After conditioning the "manifest. MF' has two meanings: P

  • Group on 3005 limit

    Nobody knows what the limit for the number of groups on a concentrator 3005? I'm going to have to set up a large number to support the static by PC IP addressing, but worry that I can hit a real limit or practical. I scoured records with no luck to f

  • Display the help blackBerry Smartphones

    Help, please... My screen turns on automatically when you are sitting on the counter/table (unaffected) every 10 to 30 seconds without interruption. Even if I have the screen lock or the phone is completely locked, the home screen keeps popping up. W