Howto change the date format in reports ??

Hello
i'm working in Oracle Reports in Oracle Applications.
How can i convert date from 2008/3/28 to 28-MAR-2008
Regards
Fahad Hameed

Hii everybody
Just to add in
Here is the sql line date line that i'm intrested in converting to the above format.
SUBSTR(PAC.SEGMENT11,0,10) AS "LETTER RECIEVED DATE",
Below is my complete SQL for a simple report i'm developing.
SELECT DISTINCT
     PAPF.PERSON_ID AS "PERSON_ID",
PAPF.EMPLOYEE_NUMBER AS "EMP NO",
PAPF.FIRST_NAME||' '||PAPF.MIDDLE_NAMES||' '||PAPF.LAST_NAME AS "EMPLOYEE NAME",
     PAC.SEGMENT1 AS "VERIFICATION TYPE",
PAC.SEGMENT2 AS "ACADEMIC CERTIFICATES",
     PAC.SEGMENT3 AS "BOARD / INSTITUTES",
     PAC.SEGMENT4 AS "ADDRESS",
--'TEL / CELL '||' '||PAC.SEGMENT5||' '||' FAX '||' '||PAC.SEGMENT6||' '||'EMAIL '||' '||PAC.SEGMENT7 AS "CONTACT",
     PAC.SEGMENT5 AS "PHONE NO",
     PAC.SEGMENT6 AS "FAX",
     PAC.SEGMENT7 AS "EMAIL",
     PAC.SEGMENT8 AS "CITY",
     SUBSTR(PAC.SEGMENT9,0,10) AS "LETTER SENT DATE",
     PAC.SEGMENT10 AS "VERIFICATION STATUS",
     SUBSTR(PAC.SEGMENT11,0,10) AS "LETTER RECIEVED DATE",
     PAC.SEGMENT12 AS "REMARKS / FOLLOW UP"
FROM
PER_ALL_PEOPLE_F PAPF,
     PER_ALL_ASSIGNMENTS_F PAAF,
HR_ALL_ORGANIZATION_UNITS HRAOU,
     PER_PERSON_ANALYSES PPA,
     PER_ANALYSIS_CRITERIA PAC,
     APPS.FND_ID_FLEX_STRUCTURES FIFS
WHERE HRAOU.ORGANIZATION_ID = PAAF.BUSINESS_GROUP_ID
AND PAPF.BUSINESS_GROUP_ID=3788
AND PAPF.EFFECTIVE_END_DATE=TO_DATE('31/12/4712','DD/MM/RRRR')
AND PAAF.EFFECTIVE_END_DATE=TO_DATE('31/12/4712','DD/MM/RRRR')
AND PAPF.CURRENT_EMPLOYEE_FLAG='Y'
AND PAAF.ASSIGNMENT_TYPE='E'
AND PPA.ANALYSIS_CRITERIA_ID=PAC.ANALYSIS_CRITERIA_ID
AND PAPF.PERSON_ID=PPA.PERSON_ID
AND FIFS.ID_FLEX_NUM=PAC.ID_FLEX_NUM
AND FIFS.STRUCTURE_VIEW_NAME ='EDUCATIONAL VERIFICATION'
AND PAPF.EFFECTIVE_START_DATE between FND_DATE.date_to_chardate(:From_Date )And FND_DATE.date_to_chardate(:To_Date)
AND PAC.SEGMENT1=:P_VERF_TYPE
AND PAC.SEGMENT10=:P_VERF_STATUS
Regards
Fahad Hameed

Similar Messages

  • I want to change the date format MM/YYYY to MM.YYYY in web report

    Hi to all experts,
       Here  the problem is: when i run a report for variable input when we select date as MM/YYYY its getting error . Here i need to change MM/YYYY to MM.YYYY. can u please tell me where exactly i need to change means in BEx or Web? if it is BEx where it is exactly pls tell m ethe step to step procedure.
    Its urgent!
    ( I will assign the points if its useful to me)
    Advance Thanks,
    Shah

    Hi Siggi,
            In su01 if we go  and change the date format from MM/YYYY to MM.YYYY  for a particular user ex:ss11 , if another user ex:bst55 try to run the web report he/she may get same error .If we make the change in su01-> default tab->under date format for a particular user , is it work for other users?
    Can u tell me step by step where exactly we need to go in AWB and where need to modify.
    I am looking for ur answer.
    Thanks in Advance
    Shah

  • Need to change the date format in Bex

    HI All
    In SAP BI I have created a BEx Query. We can see BEx reports in MS Excel. Date format in the report is DD/MM/YYYY and i want it to be displayed like YYYYMMDD. but only for one date column in the report the rest stay the same. Please help.

    Hi Basson,
    Goto t-code SU01
    Enter you user ID details click on change --> select the Default TAB here you can find the option to change the date formats.
    Or
    In BW  goto Menu option System > User Profile>Own Data  > It will display the user profile parameters> in default tab page change date format there.
    Its better to go for a routine .
    Regards
    Prashanth K

  • How to change the date format?

    Hi,
    I need to display the data format as(YYYY-MM-DD). But now it displays(2009-1-9)
    Here is my code snippet which i used to display the data format as(2009-1-9)
    *<INPUT TYPE=TEXT NAME="date_submitted" MAXLENGTH=20 SIZE=10 VALUE="" onBlur= "return dateSubmitted()">  (YYYY-MM-DD)*
    *<SCRIPT LANGUAGE="javascript">*
    dateSubmitted()
    *</SCRIPT>*
    function dateSubmitted()
                        if (document.pgUpdate.date_submitted.value == "")
                             date = new Date();     
                             month = date.getMonth() + 1     
                             document.pgUpdate.date_submitted.value =
                                            date.getYear() + "-" + month + "-" + date.getDate();
                        return true;
    Can anybody help me how to change the date format?
    Thanks in advance!

    prit123 wrote:
    use SimpleDateFormat class. The code is :He posted a Javascript related question, not a Java related question.
    Please use forums devoted to Javascript. You're here at a Java/JSP forum.
    There are JS forums at webdeveloper.com and dynamicdrive.com. Good luck.
    String formatPattern = "yyyy-mm-dd";
    SimpleDateFormat sdf = new SimpleDateFormat(formatPattern);
    sdf.format(yourdate);yyyy-mm-dd denotes year-minutes-days. Please go read the SimpleDateFormat API as well.

  • Changing the Date format in iCal

    Is there any way to change the date format from American (MM/DD/YY) to European (DD/MM/YY) in iCal?
    Thanks in advance.

    As far as I'm aware, it should respect what you specify in the Formats tab of the International pane in System Preferences.

  • How can I change the date format in Reminders and in Notes?

    How can I change the date format in both Notes and Reminders? Preference on Imac and Settings in IOS do not allow me to change the format in those 2 apps.
    I Like to see 10oct rather than 10/10, as an example.

    pierre
    I do not have Mavericks or iOS - but the first thing I would do is reset the defaults - I'll use Mavericks as an example
    From If the wrong date or time is displayed in some apps on your Mac - Apple Support
    OS X Yosemite and Mavericks
        Open System Preferences.
        From the View menu, choose Language & Region.
        Click the Advanced button.
        Click the Dates tab.
        Click the Restore Defaults button.
        Click the Times tab.
        Click the Restore Defaults button.
        Click OK.
        Quit the app where you were seeing incorrect dates or times displayed.
        Open the app again, and verify that the dates and times are now displayed correctly.
    Then customize to taste - OS X Mavericks: Customize formats to display dates, times, and more
    OS X Mavericks: Customize formats to display dates, times, and more
    Change the language and formats used to display dates, times, numbers, and currencies in Finder windows, Mail, and other apps. For example, if the region for your Mac is set to United States, but the format language is set to French, then dates in Finder windows and email messages appear in French.
        Choose Apple menu > System Preferences, then click Language & Region.
        Choose a geographic region from the Region pop-up menu, to use the region’s date, time, number, and currency formats.
        To customize the formats or change the language used to display them, click Advanced, then set options.
        In the General pane, you can choose the language to use for showing dates, times, and numbers, and set formats for numbers, currency, and measurements.
        In the Dates and Times panes, you can type in the Short, Medium, Long, and Full fields, and rearrange or delete elements. You can also drag new elements, such as Quarter or Milliseconds, into the fields.
        When you’re done customizing formats, click OK.
        The region name in Language & Region preferences now includes “Custom” to indicate you customized formats.
    To undo all of your changes for a region, choose the region again from the Region pop-up menu. To undo your changes only to advanced options, click Advanced, click the pane where you want to undo your changes, then click Restore Defaults.
    To change how time is shown in the menu bar, select the “Time format” checkbox in Language & Region preferences, or select the option in Date & Time preferences.
    Here's the result AppleScript i use to grab the " 'Short Date' ' + ' 'Short Time' "  to paste into download filenames - works good until I try to post it here - the colon " : " is a no-no but is fine in the Finder
    Looks like iOS Settings are a bit less robust
    - Date/Time formats are displayed according to 'tradition' of your region > http://help.apple.com/ipad/8/#/iPad245ed123
    buenos tardes
    ÇÇÇ

  • How do I change the date format?

    Sorry, but I'm new to Oracle!
    I'm using "sqlplusw" to build my SQL statements. When I return columns that are date fields, I get the DD-MON-YY format. I want dates to be returned in "YYYY-MM-DD HH24:MI:SS". My DBA won't change the date format on the server, so how do I change SQLPLUS to return dates in the format I want? Do I need set this in some kind of startup file, or a reg key?
    Using client version 9.2.0.5 against a 9.2.0.1 server
    Jeff

    There are a couple of ways you could do it.
    Way 1:
    Search for a file by name 'glogin.sql' on your client work station and add the following statement
    alter session set nls_date_format = 'YYYY-MM-DD HH24:MI:SS';Make sure you save the file. This change will apply to all users who will log into the database using SQL*PLUS from your machine.
    Way 2:
    Create a shortcut and place it some where (for example on the 'DESKTOP').
    Right click on the short cut and choose properties.
    Change the text corresponding to the 'Start in' box to reflect the current location of the shortcut.
    Create a file by name 'login.sql' and place it in the same folder as the shortcut.
    Edit the file and add the following line.
    alter session set nls_date_format = 'YYYY-MM-DD HH24:MI:SS';Make sure that you save the file.
    When you double click the shortcut to start SQL*Plus and login, the script 'login.sql' is executed.

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

  • Function module to change the date format

    hi guys
    is there any function module to change the date format
    from 08/28/2007(mm/dd/yyyy)
    to August 28, 2007.
    regards
    vamsi

    hi vamsi.,
    Use  CONVERSION_EXIT_SDATE_OUTPUT to get the month name,
    but it will give short form of the month name.
    if you want <b>long description of the month</b>,
    use this peice of code.
    PARAMETERS: V_DATUM(07) TYPE C. "(example input:12-2007)
      DATA:     V_MON(2)  TYPE C,
                V_YEAR(4)      TYPE  C,
                V_MONTHNAME(10) TYPE C,
                V_FULLDATE(30) type c.
    WRITE  V_DATUM+0(2) TO V_MON.
    SELECT SINGLE LTX FROM T247 INTO V_MONTHNAME
    WHERE        SPRAS = SY-LANGU
         AND       MNR  = V_MON.
    CONCATENATE  V_MONTHNAME  v_datum+3(4)
                      INTO V_FULLDATE  SEPARATED BY SPACE.  "(example output : December 2007)
                      write: v_fulldate.
    <i><b>Reawrd points if useful</b></i>
    Chandra

  • How to change the date format  YYYYMMDD to MM/DD/YYYY

    Hi ,
    How to change the date format  YYYYMMDD to MM/DD/YYYY .
    Ex :  20071008  to 10/08/2007
    Is there any function module for this ??
    Regards
    Rahul

    Hi Sharma,
    check the code:
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-031.
    PARAMETERS: date1 RADIOBUTTON GROUP rad1 DEFAULT 'X', "SAP date format YYYYDDMM
    date2 RADIOBUTTON GROUP rad1, "Date format like aprial31, 2006
    date3 RADIOBUTTON GROUP rad1, "Date format like 31 apr,2006
    date4 RADIOBUTTON GROUP rad1, "Date format like DD/MM/YYYY
    date5 RADIOBUTTON GROUP rad1. "Date format like DD.MM.YYYY
    SELECTION-SCREEN END OF BLOCK b2
    FORM getmonth .
    SELECT mnr
    ktx
    ltx
    INTO TABLE T_month
    FROM t247
    WHERE spras = 'EN'.
    IF sy-subrc NE '0'.
    MESSAGE I "Message - Not able to get month values from the table T247
    ENDIF.
    ENDFORM.
    DATA : temp_date(16) TYPE c,
    temp1_date(60) TYPE c,
    year(4) TYPE c,
    daymonth(11) TYPE c,
    daymonth1(11) TYPE c,
    month(9) TYPE c,
    day(2) TYPE c,
    mon LIKE t247-ktx,
    len TYPE i .
    MOVE date TO temp1_date .
    CONDENSE temp1_date NO-GAPS.
    MOVE temp1_date TO temp_date .
    IF date2 EQ 'X'. "The date format is like Aprial 31, 2007
    CONDENSE temp_date NO-GAPS.
    SPLIT date AT ',' INTO daymonth year.
    IF STRLEN( year ) NE '4'.
    error = 'X'.
    WRITE : 'Invalid date format.'.
    ELSE.
    daymonth1 = daymonth.
    CONDENSE daymonth1 NO-GAPS.
    _len = STRLEN( _daymonth1 ).
    l_len = 13 - len.
    SHIFT daymonth1 RIGHT BY len PLACES.
    CONDENSE daymonth1 NO-GAPS.
    month = daymonth1.
    CONDENSE month NO-GAPS.
    SORT t_month BY monthltx.
    READ TABLE t_month WITH KEY monthltx = month.
    IF sy-subrc <> 0.
    error = 'X'.
    WRITE : 'Invalid date format.' .
    ELSE.
    len = STRLEN( month ).
    CONDENSE daymonth NO-GAPS.
    SHIFT daymonth LEFT BY len PLACES.
    day = daymonth.
    CONDENSE day NO-GAPS.
    CONCATENATE year t_month-monthnumber day INTO o_date.
    ENDIF.
    ENDIF.
    ELSEIF p_date3 EQ 'X'. "The date format is like 31 apr, 2007
    CONDENSE temp_date NO-GAPS.
    SPLIT i_date AT ',' INTO daymonth year.
    IF STRLEN( year ) NE '4'.
    error = 'X'.
    WRITE : 'Invalid date format.'.
    ELSE.
    daymonth1 = daymonth.
    CONDENSE daymonth1 NO-GAPS.
    SHIFT daymonth1 LEFT BY 2 PLACES.
    CONDENSE daymonth1 NO-GAPS.
    month = daymonth1.
    CONDENSE month NO-GAPS.
    TRANSLATE month TO UPPER CASE.
    SORT t_month BY monthstx.
    MOVE month to mon.
    READ TABLE t_month WITH KEY monthstx = mon.
    IF sy-subrc <> 0.
    error = 'X'.
    WRITE : 'Invalid date format.' .
    ELSE.
    CONDENSE daymonth NO-GAPS.
    day = daymonth+0(2).
    CONDENSE day NO-GAPS.
    CONCATENATE year t_month-monthnumber day INTO o_date.
    ENDIF.
    ENDIF.
    ELSEIF p_date4 EQ 'X' OR p_date5 EQ 'X'. "Date format is like DD.MM.YYYY or DD/MM/YYYY
    CONDENSE temp_date NO-GAPS.
    IF STRLEN( temp_date ) EQ 10.
    o_date0(4) = temp_date6(4).
    o_date4(2) = temp_date3(2).
    o_date6(2) = temp_date0(2).
    ELSE.
    error = 'X'.
    WRITE : 'Invalid date format.' .
    ENDIF.
    ENDIF.
    IF STRLEN( o_date ) NE '8'.
    error = 'X'.
    WRITE : 'Invalid date format.'.
    ENDIf.
    ENDFORM. " f0100_conv_date
    Reward if helpful.
    Regards,
    Harini.S

  • How can i change the date format mm/dd/yyyy to dd/mm/yyyy

    How can i change the date format mm/dd/yyyy to dd/mm/yyyy

    Date, time and currency formats are controlled via Settings > General > International > Region Format - you can't just change the date format

  • Can we change the date format to be dd/mm/yyyy?

    Can we change the date format to be dd/mm/yyyy?

    Hello leahmaree,
    Yes, you can:
    Click the Options tab
    Click the Language & Formatting label
    Set the Date Order preference
    I hope that helps,
    Brian

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

  • While importing pictures I cannot change the import settings on the right hand side of the panel. I would like to change the date format.

    Apparently I am missing something (stupid). Suggestions are welcome. I'm a novice with Lightroom. Just migrated from Aperture.

    I am going to assume that what you meant about changing the date format is that you want to change the way the date is formatted in the renamed file. Is that correct? To do that, you need to tell Lightroom you want to rename your photos during import. On the right hand side panel of the Import dialog is a section on File Renaming. Open that up and you will find a Template drop down box. This is where you can build a file renaming template to fit your needs or you can create a custom one. If you do create your own, make sure to save it as a preset if you want to reuse later. There are all sorts of ways to rename your files with several different date formats to choose from.
    Another possibility is the subfolder option for where you are going to store your imported folders. If you chose to Organize By Date, you can also use the Date Format drop down box to choose a date format. This will cause Lightroom to build a folder for each date found in photos you are importing a create a separate folder for each day found. So, if you had three batches of photos from three separate days, three new folders would be built by Lightroom and the photos created on day one would be stored in the day one folder. Same for day two and day three.
    Finally, if you don't like the format of the capture date or one of the other dates fields stored in the metadata, you are out of luck. You can change the date but not the format.

  • How can I permanently change the date format from the American format to the UK's without having to constantly change it manually every time I start a new spreadsheet?

    This is my first mac so I'm still getting my bearings with it. I've only used Windows programmes before. I can't understand why it's so hard to change the date format of the cells in Numbers to keep it showing the UK format. The system preferences of the mac show that it's in the correct region and has the correct date but this doesn't seem to transfer into the Numbers program. I was very impressed with the mac until I discovered this. If anyone knows how I can get the date to stay in the correct format without having to go through the process of altering it in the cell inspector everytime then I would be very grateful.

    Numbers & most apps, especially those from Apple, use the date format you have set in System Preferences > Language & Text > Region. You can then choose UK from the Region drop-down list. Mine says Custom because I've defined things further as in the second screenshot.

Maybe you are looking for

  • How can you definitively tell if your GPS chipset is bad?

    I purchased a "certified pre-owned" iPhone 5 about a month ago and the GPS is horribly off without Wifi. This makes it neigh impossible to use the phone as a GPS while driving, trying to track my run, etc., which are all major features of having an i

  • Restore errors out...

    i am trying to restore a DB but keep getting errors...i was able to restore the controlfile...and here is the list backup cmd below.... i have restored from this back 3 to 4 times earlries and now it dont seem to work...i am on 10.2.0.3 RMAN> restore

  • Doubt in processing of  statements after calling JFrame class

    I have two java classes. The first one is Normal class and the second one is a JFrame class. In the first Class, i created an object for second JFrame class followed by a set of statements. Based on the input from the second class, i must process the

  • Contents of message field abruptly disappear, replaced by bits of other e-mails

    This happens only intermittently, but it's a disaster when it does. I'm opening a series of messages in my inbox, and when I return to one that was opened earlier, suddenly its contents have been wiped out. Sometimes they're replaced by mangled passa

  • ADF Rich Client Faces af:table editingMode="clickToEdit" event handling

    I have a table with editingMode="clickToEdit" that contains columns with inputText with values that map to Eclipselink JPA Entity bean properties. I am struggling to find an event that I can monitor that would allow me to persist or cancel the change