Query Reporting: Custom date format

Hi experts,
I'm looking for a solution of the following topic:
Is it possible to display 0Calday (in general type date) as "Monday, 31.12.2007" instead of "31.12.2007" in a query?
Which are the steps to do so?
Thanks in advance,
Marco

Because the RR-format is to be defined as a year from 1950 to 2049.
Th YY-format is to be defined from 2001 to 2099.
So i should say try to use YYYY/RRRR formats.
Hope this helps:
1 select to_char( to_date( '50', 'RR'), 'DD-MON-YYYY') "50RRY4" from dual
2 /
3 select to_char( to_date( '49', 'RR'), 'DD-MON-YYYY') "49RRY4" from dual
4 /
5 select to_char( to_date( '50', 'RR'), 'DD-MON-RRRR') "50RRR4" from dual
6 /
7 select to_char( to_date( '49', 'RR'), 'DD-MON-RRRR') "49RRR4" from dual
8 /
9 select to_char( to_date( '50', 'YY'), 'DD-MON-YYYY') "50YYY4" from dual
10 /
11 select to_char( to_date( '49', 'YY'), 'DD-MON-YYYY') "49YYY4" from dual
12 /
13 select to_char( to_date( '50', 'YY'), 'DD-MON-RRRR') "50YYR4" from dual
14 /
15* select to_char( to_date( '49', 'YY'), 'DD-MON-RRRR') "49YYR4" from dual
16 .
SQL> @afiedt.buf
50RRY4
01-JAN-1950
49RRY4
01-JAN-2049
50RRR4
01-JAN-1950
49RRR4
01-JAN-2049
50YYY4
01-JAN-2050
49YYY4
01-JAN-2049
50YYR4
01-JAN-2050
Input truncated to 1 characters
49YYR4
01-JAN-2049
SQL>
Regards
Auke Quist

Similar Messages

  • Not able to save date column with custom date format. in OBIEE 11g

    Hi,
    I have migrated one report from OBIEE 10g to 11g. There is a date column with customized date format(i.e. Default format is 'dd-MMM-yyyy' and I have used 'MMM-yyyy').
    But when I use this custom format and try to save the report in 11g its giving this below error.
    ''Catalog object privilege validation failed for user to path /shared/ALM BI/Finacial Results/History Income Statement Detail.
    You do not currently have sufficient privileges to save a report or dashboard page that contains HTML markup.
    This HTML might be present in column headings, table headings, text views, narrative views, the print header,
    or the print footer and must be removed before saving.''
    Please let me know what changes I need to do for this.
    Regards,
    Ambika Nanda.

    Hi ,
    privilage issues...check the security settings once..
    Thanks,
    Ananth

  • Custom Date Format in Apex 3.2

    Can I define a custom date format at global level. I am able to select the following date formats only. However, I want to specify a custom date format i.e YYYYMONDD.
    12-JAN-04
    12-JAN-2004
    12-JAN
    04-JAN-12
    2004-01-12
    Monday, 12 January, 2004
    12-JAN-2004 14:30
    12-JAN-2004 14:30:00
    12-JAN-2004 02:30PM
    January
    16 hours ago
    Thanks in advance for the help.
    CM

    Hi,
    You can type to field your custom format.
    Br,Jari

  • Pages custom date format

    I'm looking for a way to create a custom date format outside a Pages formatted cell. In other words, in text paragraphs, I need to be able to update the year only in a paragraph. Any ideas?

    If you are looking for the capability within Pages to insert a custom date field-code like the following, outside of a table, then I am not aware of how it can be done. I used LibreOffice 4.0 to produce the following image.
    When this was exported as a .docx file into Pages v4.3 on Mountain Lion, the YYYY format was replaced by a Pages date field. A right-button selection of this date in Pages offers an Edit Date & Time... menu item that produces the following panel:
    There is no YYYY format customization on this panel within Pages.
    It is possible to write an AppleScript service that runs from your Pages > Services menu and scans your Pages document for a date to convert to a YYYY replacement format. You may not want that either.
    Did this answer your question?

  • Custom date format is not working for me

    I have a bunch of dates imported from another spread sheet. They look like this:
    February 04, 2014 at 09:24AM
    Numbers 3.2 sees this as Text, so I went about making a custom date format. It looks like this:
    However, I cannot make Numbers see it as a date. It keeps saying it is a string. If I select the cell containing the date and set the format to "My Custom Format", nothing happens - at all.
    What am I doing wrong?
    Thanks in advance,
    Michael

    Hi Michael,
    The Custom format you designed will display a normal Dave and Time value in the way your import presents it. That's not what you want though.
    To comvert the imported format to a regular Numbers format, use a conversion expression in a new column.
    Assuming your Imported Date is in Column B, Insert a Column and use this expression:
    =DATEVALUE(LEFT(B, LEN(B)−11))+TIMEVALUE(RIGHT(B, 7)
    Format your new column to the way you want to see Date/Time in your document.
    Jerry

  • Custom Data Formatting Gone for Dates

    Another new aspect of the updated Numbers app for OS X is the loss of customizing data formats.  There are more options via a drop down, but there's less customization.  For example.  I had a use case where I'd take a column full of dates and would replicate it so the same data was in two columns.  I then was able to customize the first column of dates to use a month shortcode only so it would render "Jan, Feb, Mar, Apr..." depending on the data in that column.  The next colum with the same data I'd then customize to show only the day of the month.  See the example below.
    Date
    Column 1
    Date
    Column 2
    Jan
    4
    Mar
    15
    Oct
    23
    Presently, neither the shortnames for months by themselves nor the day of the month by itself is available as an option when working in the Data Format panel.
    I'm assuming the customization was killed, but if someone knows if that's hidden elsewhere, please let me know!

    Hi Bret,
    I don't know the answer to your actual question as I tend to later adoption, and am not yet using Numbers 3.0, but here's a workaround (with some limitations, noted below).
    Limitations:
    Requires that the values in the cells are created by formulas, or can be created by formulas referencing another cell.
    The resulting values will be a text string (column A) or a numeric value (column B), not a Date and Time value.
    A: =LEFT(MONTHNAME(MONTH(formula)),3)
    B: =DAY(formula)
    In each, formula is the existing formula used to determine the D&T value currently in the cell.
    Regards,
    Barry

  • Custom Data Format

    I am using the new version of numbers and cannot find an option for custom data format. Has it been removed or am I missing something? Can someone point me out where it is? Either that, or let me know how to get a bigger currency list as the currency I am wanting is not there.

    Hi Cullen,
    Thank you for this workaround. I did as you said, and it works, unlike copy and paste from Numbers 2.3 to Numbers 3.0 .
    In Numbers '09 (version 2.3) I created two Custom formats.
    Column A is the inbuilt Date and Time format showing only the Date (my region's date format is Day Month Year).
    Column B is a Custom Format to show short Month, space, short year.
    Column C is the inbuilt format for Number.
    Column D is a custom Format to show leading zeroes.
    Then I did as you said and saved the Numbers 2 document (as a document for future use, not as a Template, because I am not sure how Templates are shared between the two versions on Numbers).
    Then File, option key > Save As... a new name to preserve my original from harm by Numbers 3.0 .
    In Numbers 3, (as you said) open the spare copy and the Custom formats are indeed listed. Format Inspector > Cell > Data Format
    And they do work. Here is where I edited the cell content by entering new values from the keyboard:
    I shall place a link to this thread on the thread named "Workarounds in Numbers 3.0?"
    https://discussions.apple.com/message/23622372#23622372#
    Thanks for this.
    Regards,
    Ian.

  • BEx Query Report - Customer transactions for a period.

    Dear Experts
    my management has asked me to create a Customer Statement Query.
    Sample Format
    Customer Code  |   Document Date | Document No  | Transaction Type |    Opening Balance (Beginning of month) | Credit  | Debit
    Necessary Data Available in FI AR line item cube.
    since i am new to SAP BI i am finding difficultly in calculating the opening balance in the first row. it will be a great help if somebody can assist me in creating the query in the above format.
    thans
    viru
    Edited by: Lankem-IT on Apr 27, 2011 5:15 PM
    Edited by: Lankem-IT on Apr 27, 2011 5:19 PM

    Hi
    Thanks Ashutosh Singh & AP_SAP for replying.
    i am planning to use : 0FIAR_O03 DSO for this purpose.
    logic given to me by management is like this
    Statement is for a month. Example ( 2011/04/01 to 2011/04/30).
    opening balance is as at 2011/03/31 (Cumulative Debit/Credit Amount .) on First Row
    then followed by Statement period Transaction
    Fields : Document No , Document Date , Transaction Type , Debit Amount , Credit Amount
    Then Finally Closing Balance as at 2011/04/30  on the Final Row(Cumulative Debit/Credit Amount = Opening Balance + Debit Amt - Credit Amt)
    Regards
    Viru.

  • Trying to change a pre-defined report. Date format is wrong, 20140217 should be 17.02.2014.

    The pre-defined report in sccm "Computers with specific software registered in Add Remove Programs" has a query like this:
    Select DISTINCT sys.Netbios_Name0, fcm.SiteCode,  sys.User_Domain0, sys.User_Name0, sys.Operating_System_Name_and0, arp.DisplayName0,
    arp.InstallDate0  
    FROM fn_rbac_R_System(@UserSIDs)  sys 
    JOIN v_Add_Remove_Programs arp ON sys.ResourceID = arp.ResourceID  
    JOIN v_FullCollectionMembership fcm on sys.ResourceID=fcm.ResourceID 
    WHERE DisplayName0 like @filterwildcard and fcm.CollectionID=@CollID
    I have highlighted the part that I added to the report.
    I have inserted an extra column in Report Builder, and added the value inside the column and the install date can be viewed in the report. However the date format is shown like this: 20140217 - I want it to be 17.02.2014.
    So I try to change this via right-clicking on the cell in Report Builder, Text Box Properties, Number. Here I choose Date and the correct format. However it does not change the date format when saving and running the report again. It just stays the same. 
    Kthxbai

    The format can be change if it was a date. But if you look that field it is NOT a date, it is a string and therefore will not  change to the data format that you want.
    On top of this, there is a bigger problem. Not ever setup records the date or in the same format so.....
    http://www.enhansoft.com/
    Sorry - I am not sure what you mean by the last statement. "Not ever setup records the date or in the same format so.."
    - Would it be possible to elaborate? Thank you very much.
    Kthxbai

  • How can i query report between date item

    Hi All,
    my report query like this
    </code>
    SELECT PROJECT_STATEMENT.PROJECT_STATEMENT_ID,
    PROJECT_STATEMENT.CREATE_DATE,
    PROJECT_STATEMENT.DOC_NO,
    PROJECT_STATEMENT.LISTS
    FROM PROJECT_STATEMENT
    WHERE TO_CHAR(PROJECT_STATEMENT.CREATE_DATE) BETWEEN TO_CHAR(:P3341_START_DATE)AND TO_CHAR(:P3341_TO_DATE)
    AND PROJECT_STATEMENT.CATEGORY_BUDGET = 2
    AND PROJECT_STATEMENT.STATUS = 1
    AND PROJECT_STATEMENT.BUDGET_TYPE = 8
    </code>
    i try to select date from 2 item is start date and stop date with this query but it does't work how can i do this? please help me...
    my APEX Version is 4.1 and oracle 11g
    Edited by: 963456 on 5 ต.ค. 2555, 8:11 น.

    Hi,
    Try this
    SELECT PROJECT_STATEMENT.PROJECT_STATEMENT_ID,
      PROJECT_STATEMENT.CREATE_DATE,
      PROJECT_STATEMENT.DOC_NO,
      PROJECT_STATEMENT.LISTS
    FROM PROJECT_STATEMENT
    WHERE PROJECT_STATEMENT.CREATE_DATE  BETWEEN TO_DATE(:P3341_START_DATE,'<fmt>')
      AND TO_DATE(:P3341_TO_DATE,'<fmt>')
    AND PROJECT_STATEMENT.CATEGORY_BUDGET = 2
    AND PROJECT_STATEMENT.STATUS = 1
    AND PROJECT_STATEMENT.BUDGET_TYPE = 8Where &lt;fmt&gt; is the Date Format Mask of the two page items.
    Converting dates to varchar2 and then comparing them is not the way to do it.
    Cheers,

  • I18n for custom date format strings

    I want to internationalize dates shorter than DateFormat.SHORT, in the form "M/d". For example, when the Locale is US, January 16 should display as 1/16, but if the Locale is MX (Mexico), it should display as 16/1.
    It seems like a very simple problem date formatting problem, but it doesn't look like the DateFormat/SimpleDateFormat classes have any way of doing this. Am I missing something?
    --Steven                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    You need to apply your own customized date pattern to get the formats you want. I suggest you put the patterns in resource bundles...the default pattern in your default bundle, and the Mexican pattern in your bundle for Mexico. Then do something like this:
    <pre>
    <code>
    String newPattern = "M/d"; // retrieve from bundle instead
    Date today = new Date();
    DateFormat df = DateFormat.getInstance();
    SimpleDateFormat simpleFormat = (SimpleDateFormat)df;
    simpleFormat.applyPattern(newPattern);
    System.out.println(df.format(today);
    </code>
    </pre>

  • Error signaled in parallel query server p005 DATE format comparison

    Hello All,
    I have a data like this.
    {code}
    j_id   s_id     b_id    lc   t_date                             my_val1     my_val2
    100    200    300     prs   2013-07-17 16:01:47         myval1     myval2
    100    200   300     prs    2013-07-17 16:01:47         myCval1   myCval2
    {code}
    When i am running a query like this
    {code}
    update my_tab b
            set my_col = 'X'
            where rowid <> ( select max(t.rowid) from my_tab t
                             where
                                    t.J_ID        = b.J_ID   and
                                    t.S_ID = b.S_ID and
                                    t.B_ID      = b.B_ID and
                                    t.LC   = b.LC
                                  and TO_TIMESTAMP(trim(t.t_DATE), 'YYYY-MM-DD HH24:MI:SS.FF')
                                   = TO_TIMESTAMP(trim(b.t_DATE), 'YYYY-MM-DD HH24:MI:SS.FF')
    {code}
    I know i have a DATE format but converting it into TIMESTAMP because my data is random and could contain the time stamp as well.
    My concern here is when i run above update statement i get error
    {code}
    ORA-12801: error signaled in parallel query server P005
    ORA-01862: the numeric value does not match the length of the format item
    {code}
    but when i do like below.. It runs fine. Not sure what i am missing here or doing something wrong. Please help.
    {code}
    select to_timestamp('2013-07-08 17:58:47', 'YYYY-MM-DD HH24:MI:SS.FF') from dual
    where
    to_timestamp('2013-07-08 17:58:47', 'YYYY-MM-DD HH24:MI:SS.FF') = to_timestamp('2013-07-08 17:58:47', 'YYYY-MM-DD HH24:MI:SS.FF')
    {code}
    Thanks!

    user10647455 wrote:
    Hello All,
    I have a data like this.
    {code}
    j_id   s_id     b_id    lc   t_date                             my_val1     my_val2
    100    200    300     prs   2013-07-17 16:01:47         myval1     myval2
    100    200   300     prs    2013-07-17 16:01:47         myCval1   myCval2
    {code}
    When i am running a query like this
    {code}
    update my_tab b
            set my_col = 'X'
            where rowid <> ( select max(t.rowid) from my_tab t
                             where
                                    t.J_ID        = b.J_ID   and
                                    t.S_ID = b.S_ID and
                                    t.B_ID      = b.B_ID and
                                    t.LC   = b.LC
                                  and TO_TIMESTAMP(trim(t.t_DATE), 'YYYY-MM-DD HH24:MI:SS.FF')
                                   = TO_TIMESTAMP(trim(b.t_DATE), 'YYYY-MM-DD HH24:MI:SS.FF')
    {code}
    I know i have a DATE format but converting it into TIMESTAMP because my data is random and could contain the time stamp as well.
    My concern here is when i run above update statement i get error
    {code}
    ORA-12801: error signaled in parallel query server P005
    ORA-01862: the numeric value does not match the length of the format item
    {code}
    but when i do like below.. It runs fine. Not sure what i am missing here or doing something wrong. Please help.
    {code}
    select to_timestamp('2013-07-08 17:58:47', 'YYYY-MM-DD HH24:MI:SS.FF') from dual
    where
    to_timestamp('2013-07-08 17:58:47', 'YYYY-MM-DD HH24:MI:SS.FF') = to_timestamp('2013-07-08 17:58:47', 'YYYY-MM-DD HH24:MI:SS.FF')
    {code}
    Thanks!
    If you have a date column, converting that to a timestamp isn't going to magically add more information to the date.
    Date data types hold time information (not to the fractional precision like timestamps, but up to the second) ... if you are having a problem seeing that information, it's likely because of your NLS_DATE_FORMAT setting (whatever client you are using to view the data isn't showing you all of the information, but it's still there).
    So basically, this boils down to your code not "making sense" at the moment
    Cheers,

  • Custom Date format in InfoPath DatePicker without code

    Hello,
    I am trying to customize the date format in my date picker on my InfoPath form. I went to the date picker properties and was able to change it so that it displays the format in "14-Mar-01" but I want to really customize and have it formatted to look
    like the following "MMM-YY" format. Is there a way to go about setting this format without custom code? I am unable to use any server side code for my forms.
    Thank you!

    Hi,
    According to your post, my understanding is that you want to customize the date format like “MMM-YY” without custom code.
    The date format which is set in InfoPath Form is different from the date column’s default format in SharePoint.
    In SharePoint, the default format of the date column is depended on the selection of the “Time Zone”, “Region”, “Calendar” options in the “Regional Settings” of Site Settings.
    However, the date format which is set in InfoPath Form only works on the items’ NewForm, EditForm, DispForm in the lists.
    I recommend that you can create a calculated column based on the date column with this formula: =TEXT(Date,"MMM-YY").
    Then, you can modify view to display the calculated column and hide the date column in the list.
    The result is shown as below:
    Thanks,
    Yumi Fu
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]

  • Custom date format that can use in Obiee 11g

    Hi,
    I'm new here,
    What are the date format could be use in OBIEE 11g?
    can we custom like this: DD-MM-YYYY?is there any case sensitive like dd-MM-yyyy?
    Please help
    Joe
    Edited by: JoeSSI on Mar 1, 2012 8:32 PM

    Hi,
    bot should work.refer the below
    go to u r required columns -->right click and properties then select data format tab --> check it Override Default Data Format > select it custom option put u r required both option work.
    if u kept it
    DD-MM-YYYY ===> 01-03-2012 format u ill get
    or
    dd-MM-yyyy
    Thanks
    Deva

  • TES 6.1.x - custom date format

    In 5.3.1. I was able to create my own custom dates. In 6.1 I create the format, click on Add Custom Format - click OK. When I go back to Variables - System Variables - System Date - Date Format I expect to see it in the list so I can select it, but it's not - I have to do all the steps all over again. Is this some kind of bug or is just me?     

    Weird
    I am going from base 6.1.0.133 release to the March bundle
    After applying the bundle, according to the read me I think I should be at:
    Master 6.1.0.198
    Client Manager which I assume = TESPlugin and TESWebClient
    From logs
    Client Manager
    Client Manager version: 6.1.0.138
    Java version: 1.6.0_43
    Java Virtual Machine version: 20.14-b01
    TIDAL Enterprise Scheduler: version 6.1.0.189
    Java version: 1.6.0_43
    Java Virtual Machine version: 20.14-b01
    Adapter Host: version 6.1.0.133
    Java version: 1.6.0_43
    Java Virtual Machine version: 20.14-b01
    Client Manager version: 6.1.0.138
    Java version: 1.6.0_43
    Java Virtual Machine version: 20.14-b01
    Master
    TIDAL Enterprise Scheduler: version 6.1.0.189
    Java version: 1.6.0_43
    Java Virtual Machine version: 20.14-b01
    Adapter Host
    Adapter Host: version 6.1.0.133
    Java version: 1.6.0_43
    Java Virtual Machine version: 20.14-b01
    Job Adapters
    JDBC Adapter 2.1.0.192  <-- I don't see this in March bundle (is there another bundle?
    All my other adapters seem to be correct based on readme.
    Any tricks I am missing I replaced all the files in the appropriate area w/ services stopped and restarted

Maybe you are looking for

  • SES-WBS element report

    I want to generate a report which apart from other fields should have WBS element for the corresponding service entry sheet no. Regards VS

  • Highlighting current day in month view of calendar

    Apple shows the day highlighted in all their promo images. I searched this forum and the latest entries are 2006 and 2007. Since Apple is showing this, it should be possible. But how? For instance, one plans a trip of two weeks. I'd like the weeks of

  • How to begin with Photoshop scripting

    After years of working with Photoshop I have started to device my own Photoshop scripts to automate my workflow. My search for formal Photoshop script training produced no concrete results. In the past the Photoshop World Conference has offered Photo

  • BPC 7.5 NW can't create application

    Hi! We installed bpc 75 NW SP06 and opened APSHELL application set. It is blank by default. So we tried to create new application but when clicking on "Go to Step 2 of 4" in Action Pane "Add a New Application" an error occured: "Object reference is n

  • Performance problem in Numbers '08

    It seems that Numbers is slowing down, and keyboard input lags by upwards of 10 seconds, just from having two sheets, each with only one table, but each of which has 175 rows. No other program on the system exhibits this (except Pages, which has a si