Date Format (month in words, day and year in number)

Hi Experts,
Is there any standard format available in SAP as a data type for the following format in date i.e. 05 th June 2006 or June 05 2006.
Any format where the month should be in letters. If its there could you pls revert back ASAP.
Thanking you in advance.
Jasmine

The month in words datatype is FCLTX.
If you have the date field, you can convert to your required format.
data : out_date(20) type c.
DATA : ws_fcmnr TYPE fcmnr,
       ws_month TYPE fcltx.
parameter   date like sy-datum.
ws_fcmnr = date+4(2).
SELECT SINGLE ltx
INTO ws_month
FROM t247
WHERE mnr = ws_fcmnr
and spras = 'EN'.
concatenate ws_month date6(2) date0(4) into out_date separated by space.
write out_date.
Thanks,
Susmitha
Dont forget to reward points for useful answers.

Similar Messages

  • Force 2 digit month, 2 digit days and 4 digit year.

    I have input date format month/day/year. 
    The possible input may be like following:
      1/1/2006, 1/12/2006,
    10/1/2006, 10/12/2006.
    in summay the 'day' may be 1 or 2 digit, the 'month' may be 1 or 2 digit.
    How do I make them all 2 digit 'day', 2 digit 'month' and 4 digit year.  My final goal is convert it to 'YYYYMMDD'.
    Here is my code:
    TYPES :BEGIN OF type_int_date,
                l_year(4)   TYPE c,
                l_month(2)  TYPE c,
                l_days(2)   TYPE c,
              END OF type_int_date.
    DATA:l_startdate    TYPE string,
         l_month        TYPE string,
         l_days         TYPE string,
         l_year(4)      TYPE c,
         lw_date        TYPE type_int_date,
         l_len TYPE i.
    SPLIT l_startdate AT '/' INTO
              l_month
              l_days
              l_year.
        l_len = <b>strlen</b>(l_month).
        IF l_len = 1.
           CONCATENATE '0' l_month INTO lw_int_date-l_month.
        l_len = strlen(l_day).
        IF l_len = 1.
           CONCATENATE '0' l_days INTO lw_int_date-l_days.
        lw_int_date-l_year = l_year.
        zzstartdate = lw_int_date.
    I have syntax error on the 'strlen'.  The compiler do not understand the 'strlen'.
    Please help.
    Thanks,
    Helen

    Please implement my sample program above, run it?  Any problems? If so, then I guess that you user date format is set as MM.DD.YYYY.  Which in this case will not work for you.  Neil has suggest that you translate the / to .  This may work, again, if your user date format is MM.DD.YYYY.
    report zrich_0001.
    data: im_datum(10) type c value '1/1/2006'.
    data: ex_datum type sy-datum.
    <b>translate im_datum using '/.'.</b>
    call function 'CONVERT_DATE_TO_INTERNAL'
         exporting
              date_external = im_datum
         importing
              date_internal = ex_datum.
    write:/ ex_datum.
    REgards,
    Rich Heilman

  • Calander Date format(month year)

    Hi All,
      I am using the Date format (month year, 'January 2009') to  QaaWs as a input. But when i go into Xcelsius calendar i am trying to give the same format but its not taking  as same as mentioned above( I customize the cell in xcelsius spread sheet as month year). Is there any thing to change?
    Please help me.
    Thanks in advance.
    Muvva

    The month in words datatype is FCLTX.
    If you have the date field, you can convert to your required format.
    data : out_date(20) type c.
    DATA : ws_fcmnr TYPE fcmnr,
           ws_month TYPE fcltx.
    parameter   date like sy-datum.
    ws_fcmnr = date+4(2).
    SELECT SINGLE ltx
    INTO ws_month
    FROM t247
    WHERE mnr = ws_fcmnr
    and spras = 'EN'.
    concatenate ws_month date6(2) date0(4) into out_date separated by space.
    write out_date.
    Thanks,
    Susmitha
    Dont forget to reward points for useful answers.

  • Wrong month displayed in day and week views

    I recently noticed that whereas the current month is displayed correctly in Month view, in Day and Week view the date is displayed as in January. This has been the case in both February and now March.
    I sync my iCal with my mobileme account and my iphone and these don't have the same problem.
    I have removed my com.apple.iCal.plist file and rebooted, to no avail.
    Any suggestions what else I can do?

    Thank you so much Ferd II
    I kick myself. Though too my mind it is not logical to look inside Language & Text for a problem with month names. I forgot that last month I changed the date format to yyyymmdd in order to make it more logical sorting things. I have now reverted to day of week, day of month, month, year, and everything seems fine.

  • Date Formats in Oracle Applications Forms and Oracle Self Service

    Can someone tell me what determines the Date format that appears on Oracle Applications Forms and Oracle Self Service ?
    *1.* In Oracle HRMS,all dates i see on the Forms are of the Format "MM/DD/YYYY" but my NLS Parameters are not in this format .I'm giving the results for the NLS parameters below.I thought the date formats are determined by the NLS format.Is there something else that determines the date format appearing on Oracle Applications Forms ?
    NLS_DATABASE_PARAMETERS
    NLS_DATE_FORMAT     :DD-MON-RR
    NLS_DATE_LANGUAGE     :AMERICAN
    NLS_LANGUAGE     :AMERICAN
    NLS_TERRITORY     :AMERICA
    NLS_INSTANCE_PARAMETERS
    NLS_DATE_FORMAT     :DD-MON-RR
    NLS_DATE_LANGUAGE     :
    NLS_LANGUAGE     :american
    NLS_TERRITORY     :america
    NLS_SESSION_PARAMETERS
    NLS_DATE_FORMAT     :DD-MON-RR
    NLS_DATE_LANGUAGE     :
    NLS_LANGUAGE     :american
    NLS_TERRITORY     :america
    *2* What about the profile option : ICX_DATE_FORMAT_MASK ? Does it determine the Date Format for Self Service alone or does it impact the date format appearing on Oracle Applications Forms and the actual database also ?
    *3* If I use a to_date function in ,say, a pl/sql function that i code for some custom requirements,what will be the output of the date format ? Does it take the format given in NLS paramaters or is it determined by anything else?
    Thanks in advance...

    Hi,
    Thanks for your reply ,but I'm still confused ..
    Here are the profile options I'm seeing for one of my instance :
    ICX: Date format mask - 12/31/1999
    ICX: Date language - American English
    ICX: Language - American English
    ICX: NLS Sort - BINARY
    ICX: Territory - United States
    ICX: Numeric characters - NULL
    NLS parameters are given in my original email.
    In Self Service applications(OAF) ,the date format is appearing in "mm/dd/yyyy" format but when i login to Forms based applications ,I see the date format as "dd-mon-yyyy".What determines this date format ?
    How can i make the date format to always return one format everywhere ,be it Self Service (OAF) or Oracle Forms ?
    I'm getting date format related errors for my code because of default date formats changing intermittently when i log into Self Service.I want to know if there is anyway to prevent this from happening?
    Thanks in advance.

  • How to get the data for last 3rd business day and also include saturday and sunday if its a wednesday?

    Hi All,
    I have a simple query which is below:-
    Declare @reportdate date
    set @reportdate= (DATEADD(dd,-5,getdate()))
    select * from dbo.Table
    where date IN (@reportdate)
    I need this query to pull the data for the last 3rd business day .So lets say today is monday then i need the data for last week wednesday which is 3 business days back from monday, if today is a tuesday it would be for last thursday ( as 3 business days for
    tuesday would be thursday). But if today is wednesday then i need to be last 3rd business day which is last friday and i also need to get the data for saturday and sunday.
    Can someone please help me how cani change my filter to do this?
    Please let me know if i am still unclear.
    Thanks

    Hi SqlDev12,
    Based on my understanding on your requirement, you can reference the below sample.
    CREATE TABLE BusinessTable
    Bdate DATE,
    Wd VARCHAR(10)
    ;WITH Cte(DT,WD) AS
    SELECT CAST('20150401' AS DATE),DATENAME(WEEKDAY,CAST('20150401' AS DATE))
    UNION ALL
    SELECT DATEADD(DAY,1,DT),DATENAME(WEEKDAY,DATEADD(DAY,1,DT)) FROM Cte
    WHERE DT<GETDATE()
    INSERT INTO BusinessTable SELECT * FROM Cte
    SELECT * FROM BusinessTable
    SET DATEFIRST 7 -- Set Sunday as the first day of a week
    DECLARE @givenDay DATE ='20150415' --Wednesday
    SELECT * FROM BusinessTable
    WHERE Bdate BETWEEN
    --For Monday and Sunday, select last wednesday
    (CASE WHEN DATEPART(WEEKDAY,@givenDay) IN(1,2) THEN DATEADD(DAY,2,DATEADD(WEEK,DATEDIFF(WEEK,0,@givenDay)-1,0))
    --For Tuesday and Wednesday, last week's Thursday and Friday
    WHEN DATEPART(WEEKDAY,@givenDay) IN(3,4) THEN DATEADD(DAY,-5,@givenDay)
    --For Thursday and Friday, current week's Monday and Tuesday
    WHEN DATEPART(WEEKDAY,@givenDay) IN(5,6) THEN DATEADD(DAY,-3,@givenDay)
    --For Saturday, current week's Wednesday
    ELSE DATEADD(DAY,2,DATEADD(WEEK,DATEDIFF(WEEK,0,@givenDay),0)) END)
    AND
    (CASE WHEN DATEPART(WEEKDAY,@givenDay) IN(1,2) THEN DATEADD(DAY,2,DATEADD(WEEK,DATEDIFF(WEEK,0,@givenDay)-1,0))
    WHEN DATEPART(WEEKDAY,@givenDay) IN(3) THEN DATEADD(DAY,-5,@givenDay)
    WHEN DATEPART(WEEKDAY,@givenDay) IN(4) THEN DATEADD(DAY,-3,@givenDay)
    WHEN DATEPART(WEEKDAY,@givenDay) IN(5,6) THEN DATEADD(DAY,-3,@givenDay)
    ELSE DATEADD(DAY,2,DATEADD(WEEK,DATEDIFF(WEEK,0,@givenDay),0)) END)
    DROP TABLE BusinessTable
    If you have any feedback on our support, you can click
    here.
    Eric Zhang
    TechNet Community Support

  • ICal to do list due date shows only day and year

    Trying to set up a few to do items for the future, I checked the "due date" box and it's showing today's date as 22/2013 as oppose to "01/22/2013". While I can change the "22" to a future day, I don't have the option to modify the month because it's not shown. Any clues?
    Thanks.

    Nevermind. There's a setting in the preferences for how soon after an event is completed that it is removed from the visible list.

  • Day/Month appearing as Day of Year/Month

    When I look at dates displayed for Time Machine (right hand date bar) I notice they display as Wednesday, 132 May 2010 then Wednesday, 139 May 2010 etc. Is there a way to get back to the actual day/month/year format I specify for an Australian machine? I have noticed similar date displays within Software Update and iSync.

    Thanks, the Region under Language and Text>Formats was listed as Custom. I changed it to Australia and this had rectified the problem when I Restarted and checked Time Machine.
    Cheers Gavin

  • Current date as deafult for Calender Day and user entry

    Hello All,
    There is a select option for Calender Day for a BW query.
    This Calender Day should have a default as Current Date and User entry is also possible.
    I have used a Customer exit and written the following code under i_step = 1
    data: v_currdt like sy-datum.
    clear: v_currdt, vfl_range.
             if i_step = 1.
              vfl_range-sign = 'I'.
              vfl_range-opt = 'EQ'.
              v_currdt = sy-datum.
              vfl_range-low = v_currdt.
              append vfl_range to e_t_range.
             endif.
    Please inform if this code is incorrect, because I am not able to see the date at all.
    Cheers,
    KP

    Hi
    Check with this code!
    Implemented for the same function as you require.-
    if i_step = 1.
      case i_vname.
        WHEN 'ZZZZZZ'.
          IF i_step = 1.
            REFRESH e_t_range.
            CLEAR l_s_range.
            l_date1 = sy-datum.
            L_S_RANGE-LOW = l_date1.
            L_S_RANGE-SIGN = 'I'.
            L_S_RANGE-OPT  = 'EQ'.
            APPEND L_S_RANGE  TO E_T_RANGE.
          endif.
      endcase.
    endif.
    Regards
    M.A

  • Date from the given week nr and year

    hi to all
    With weeknr, yearnr i need to find STARTDATE (first day of the week), ENDDATE (last day of the week) The first day of the week is always a Monday.
    example 44 2007
    week nr is 44
    year is 2007
    how to find it.
    is there any standard function module to find.
    regards
    prathap

    Hello Pratap,
    Please check the function module 'VELO03_WEEK_OR_MONTH_TO_DATE'.
    I also wrote a demo program to test it.
    PARAMETER: p_week  TYPE vlc_week DEFAULT '01',
               p_gjahr TYPE gjahr.
    DATA: v_dat1 TYPE sy-datum, "Start Date
          v_dat2 TYPE sy-datum. "End Daye
    CALL FUNCTION 'VELO03_WEEK_OR_MONTH_TO_DATE'
      EXPORTING
       week_iv             = p_week
        year_iv             = p_gjahr
    IMPORTING
       date_ev             = v_dat1
    EXCEPTIONS
       week_invalid        = 1
       month_invalid       = 2
       OTHERS              = 3.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    v_dat2 = v_dat1 + 5. "Assuming Saturday is the last day
    WRITE: v_dat1, / v_dat2.
    Hope this helps. Award points if helpful.
    Thanks & Regards,
    Suhas.
    PS: You can also use the FM 'WEEK_GET_FIRST_DAY'.
    Edited by: Suhas Saha on Jan 2, 2008 8:08 AM

  • Oracle Dates (calendar months or 30-day months)

    hi guys,
    how would we distinguish if oracle will pick up calendar months or a specific 30-day months?
    is add_months(sysdate, n) will use n calendar months (either it will hit a 30-day, 31-day or 28-day month) or a specific 30-day month calculation?
    thanks

    thanks for all the responses! iam really having some confusions re oracle dates.
    last thing, if i add_months for today's daye, 11/21/2007 what would i get here:
    add_months(sysdate, 3)
    a. Feb 21st -- the date at the beginning of the fourth calendar month from Nov 21
    b. Feb 20th -- the date at the end of the third calendar month from Nov 21
    c. Feb 18th -- the date that is 90 days after Nov 21
    thanks again

  • FM For date Format

    Hi,
    Could anybody assist me, the date format is like 20080519, but it should be in the format of 19.05.2008.Is there any function module .
    Thanks in advance.
    Regards.
    I.Reddy Prasad.

    Hi,
    CALL FUNCTION 'CONVERT_DATE_TO_INTERN_FORMAT'
        EXPORTING
          DATUM = W_DATE1
          DTYPE = 'DATS'
        IMPORTING
          IDATE = W_DATE2.
    Month in words
    Date Format (month in words, day and year in number)
    Regards
    Adil

  • NOV 22, 2008 to internal SAP date-format

    hello friends,
    how does that work? is there a  (call-)function for this?
    thanks,
    christoph

    Hi Christoph,
    Please refer the below threads,
    Date Format (month in words, day and year in number)
    Re: Convert date to internal format
    Convert your date string to one of the accepted formats and then convert it to internal format.
    Best Regards.

  • ICal events are missing Day and Month in date

    Hello, Sorry if this has been addressed elsewhere - this is such a weird fault I was not sure how to search for it.
    My iCal events are missing the Day and Month in their start and end dates - it just shows a 4 digit year which can only be edited as a 4 digit number. All my events are in their correct places but I am unable to create new multiday events.
    This applies to old and new events alike. I tried trashing my iCal prefs file but it made no difference.
    Anyone any ideas? I am using iCal 3.0.8 on Leopard 10.5.8.
    Thanks in advance.

    Worked it out - I was using a custom date format to give me day and date in the menu bar - reverting to one of the standard built in 'British' works - but then I lose my day in the menu bar....

  • Day and Month missing

    Hi
    When I edit an event in iCal i can only see the year and time in the from and to fields or if I try and set a repeating event to a date. Is there a way to get them to show again.
    John

    Worked it out - I was using a custom date format to give me day and date in the menu bar - reverting to one of the standard built in 'British' works - but then I lose my day in the menu bar....

Maybe you are looking for

  • Problem with app (F110)

    Hi all, When I am running APP  F110 all the invoices are coming gin exception list only, And cheques r not creating and letters r not coming . can any one tell me the reason and solution please. Regards, Mahesh

  • Change link to Word document

    Hi, I  have a Word document inked into my project. Now I need to create a second chm from the same project. I need to reuse a lot of topics from the linked Word document. But because of the new requirements I need to change some tiopic titles etc. I

  • Reducing QTw/alpha channel file size

    I was just handed a 01:30min QuickTime file (with and Alpha Channel) that is 960 MB. The client wants the file size to be significantly (10mb/min) smaller, for internet/flash use. I figured out how to export it (thanks to the forums) without loosing

  • Deleting Pacman Database File [SOLVED]

    Hello, just a quick question. I tested the "testing" repos but now disabled it in pacman.conf. When I'm doing pacman -Syy oder pacman -Syu it updates the remaing databases ( core,extra,community ) and complains that it can't find a server for "testin

  • How to Email Blast?

    I'm a Dreamweaver beginner. I've created in Flyer in Photoshop, which I've brought into a Dreamweaver HTML site hoping that I could email blast it, not as a file attachment, but rather a an image that automatically displays when recepient opens the m