Date format from mm/dd/yyyy to dd-mmm-yyyy

How to convert the date from 01/01/2006 to 01-Jan-2006??

Hi sravanthi,
1. we have to apply some logic for that,
   and use the standard FM
   'MONTH_NAMES_GET'
2. i have an independent FORM/PERFORM
   in which we give input as some date,
   and it returns date in format
   dd-mon-yyyy.
3. just copy paste in new program and run.
report abc.
DATA : mname(25) TYPE c.
PARAMETER : d TYPE sy-datum default sy-datum.
PERFORM getmonth USING d mname.
WRITE :/ mname.
FORM getmonth USING d mname.
  DATA : month_names LIKE t247 OCCURS 0 WITH HEADER LINE.
  DATA : m(2) TYPE c.
  m = d+4(2).
  CALL FUNCTION 'MONTH_NAMES_GET'
EXPORTING
LANGUAGE = SY-LANGU
IMPORTING
RETURN_CODE =
  TABLES
  month_names = month_names
  EXCEPTIONS
  month_names_not_found = 1
  OTHERS = 2
  READ TABLE month_names INDEX m.
  IF sy-subrc = 0.
    mname = month_names-ktx.
  ENDIF.
concatenate d+6(2) '-' mname '-' d(4) into mname.
ENDFORM. "getmonth
regards,
amit m.

Similar Messages

  • How to change data format from  MM/DD/YYYY to DD/MM/YYYY

    HI,
    How can we change data format from MM/DD/YYYY to DD/MM/YYYY in Prompt and Report Level in obiee 11g.
    Please help me ont this.
    Thanks

    Hi,
    In Prompt:
    Try using EVALUATE function.
    Eg: Evaluate('TO_CHAR(%1,%2)' as character(30),"D5.Times"."Day Date",'DD-MON-YYYY')
    Report level:
    Try this in the column formula-
    Evaluate('TO_CHAR(%1,%2)' as character(30),"D5.Times"."Day Date",'MM/DD/YYYY')
    (or)
    EVALUATE('TO_CHAR(%1,%2)' AS CHARACTER ( 30 ), "Dim- Date".Start Date, 'MON-YY')
    http://108obiee.blogspot.in/2009/03/how-to-change-date-format-mask-in-date.html
    http://obiee-bip.blogspot.in/2011/08/customizing-obiee-calendar-display.html
    Some other methods.
    Metdhod 1:
    'Save System-Wide Column Formats' Option
    Check this.
    http://siebel-essentials.blogspot.com/2010/10/11-obiee-11g-tips-9-system-wide.html?m=1
    Thanks
    satya

  • Changing Date format from MM/DD/YYYY to DD/MM/YYYY

    Hello all,
              We have upgraded our portal system from EP 6.0 to EP 7.0 . Before upgrade the portal date format was in DD/MM/YYYY  format but after upgrade it has changed to MM/DD/YYYY.
              We changed the request.mandatoryCountry and Request.mandatoryLanguage parameters as GB and EN respectively .
    After this change the standard portal iview start showing date in DD/MM/YYYY format but custom web dynpro applications are still displaying date in MM/DD/YYYY format.
            Please suggest how can we change the date format for custom dynpro applications too.
    Regards,
    Ganesh

    Ganesh,
    You might find [this|http://help.sap.com/saphelp_nw04/helpdata/en/f4/d95664da179b4db731e21c2e470b72/frameset.htm] link helpful in understanding how the locale is determined for a user who logs into the portal.
    Similar discussions are on the following threads
    1 - date format
    2 - internationalization problem - default language of wd in portal
    A snippet from the above thread,
    1) Language indicator of the user  (Example: Language not set in portal)
    2) Language preference of the browser (Example: fr - Resource doesn't exists)
    3) Language indicator of the Web Dynpro Application
    4) Language preference of the system
    5) Language preference of the JVM
    Hope it helps.
    Good Luck!!!
    GLM

  • 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

  • Change date format from DD.MM.YYYY to DD.MM in query

    Hi,
    In one partical query/web application we would like to change the display format of 0CALDAY from 01.01.2010 to 01.01 (without the year) because the data is in the columns and the analysis grid therefore is too wide. Changing this via SU01 is not an option.
    Is there any way to do this in the query?
    Thanks.

    Hi,
    If you want to display the calday data as titles of the columns,
    1) Create 2 Text Variables (ZEST1 and ZTEST2) in the title and assign them in the following format -->
    Quantity &ZTEST1&.&ZTEST2& (having a point in between them)
    2) Define ZTEST1 and ZTEST2 of the type 'replacement path' - the calday value can be used from either the infoobject or an input variable as required.
    2) In the replacement path section of ZTEST1, give an offset value (if date format is 10.10.2010, 'Offset Start' = 0 and 'Offset length' = 2)
    3)  In the replacement path section of ZTEST2, give an offset value (if date format is 10.10.2010, 'Offset Start' = 2 and 'Offset length' = 2)
    4) This would give the final result in the format 'Quantity 10.10'
    If you want to display the calday data in the columns itself, you will have to create one formula variable of the same settings above with Offset start at 0 and Offset length 4 or 5 and use it in a CKF or formula. In this case you will have to assign 2 decimal places to the column, since this is displayed as a number otherwise. the output for the same (for 01.01.2010) will be 1.01 instead of 01.01

  • How canI change the date format from mm/dd/yyyy to dd/mm/yyyy in FirefoxOS?

    I have just received and am trying out things my new Alcatel Fire E with FirefoxOS 2.0.0.0 (just updated).
    It is usual in most operating systems to be able to customize the date and time settings (amongst other things). After a few fruitless hours fiddling with the phone and checking various forums, I've come to the conclusion that this is currently not possible on my phone with this version of FirefoxOS. Or have I simply missed something?
    Achim

    ''mohd.afzal97 [[#answer-710207|said]]''
    <blockquote>
    Can u please me the method of updating phone to 2.0
    </blockquote>
    Since I don't have the old version anymore, the following might not be 100% accurate. Note that my device is in English.
    Go to the Settings app and select "Device information". You can either choose "Check now" or select "System Updates" and then "Check for Updates". If there is an update available you'll be notified. What it won't tell you is which version the new one is, at least I did not recieve that information. I thoughT I was updating to 1.4.x, not 2.0.
    You should be given the choice to either update or not. You can ignore the update if you want (like if you don't have the time, or something.
    A couple of words of warning:
    1. Make a backup of any important data first.
    2. It takes quite some time to download all the update data and this might bust your limit depending on what your service provide allows. I avoided this by doing the update whilst connected to a WLAN (also known as WiFi) which has no data restriction. This can be set in "Check for Updates > Settings".
    Hope that helps.
    Achim

  • Convert Date format from YYYYMMDD to MM/DD/YYYY --issue with Mapping

    Hi All ,
    I have IDOC(DESADV.DELVRY03-> file ) scenario which i am working on . While debugging noticed that the field :
    E1EDT13\NATNZ -Data Transformation(from yyyymmdd to mm/dd/yyyy)-Target .This works
    But say if IDOC doesn't pass any value (For Good's issue) I get Error during debugging : RuntimeException in Message-Mapping transformation: Unparseable date: ""
    I did check thsi blog : Convertinf Date format from YYYY-MM-DD to MMDDYYYY  but this is  about the Data Transformtaion.
    I tried using constants , create if , -these function doesn't work /not applicle in this case
    Could you please provide  inputs as to how to handle two condition :
    1. With date -- then transform
    2.Else , pass nothing

    Hi Varalakshmi,
    Plese try to use UDF for date conversion and include logic which would check the Space value from the source structure.
    so if there is space return as such
    else.
    perform the conversion logic.
      Convertinf Date format from YYYY-MM-DD to MMDDYYYY
    (The conversion logic has been provided by micheal in the thread you have provided in the query)
    Thanks,
    Ram.

  • Convertinf Date format from YYYY-MM-DD to MMDDYYYY

    Hi Experts,
              I want to convert  date format from yyyy-MM-dd  to MMDDYYYY ( i am using this format in the file strucure),
             i tryed using date tranfer funcion source as yyyy-MM-dd and target as yyyyMMdd this is working fine.
    i tryed using date tranfer funcion source as yyyy-MM-dd and target as MMddyyyy this is giving error.
    Please help me out,
    Thanks,
    Dhanush

    Hi,
    From the error it looks like the date value is coming as blank in the source. please give the date in the same format as you have provided in datetrans function and test it again. It will work.
    It might be possible that there are some other date fields in your source where you are not passing any value and using datefunction. please look carefully at all the source structure and data.
    thanks
    amit
    reward point if suggestion works

  • Re:How to pick the date format as dd/MM/yyyy from the database

    Hi all,
    I am using JDev 11.1.2.3.0
    My requirement is ,i want to pick the date from the database as dd/MM/yyyy format.I set the attribute as
    r1.setAttribute("JobDescription",
    "From" + olrow.getAttribute("PeriodFrom") + "To" + olrow.getAttribute("PeriodTo")
    here periodFrom and periodTo are the date attributes.i set periodFrom and periodTo date format as dd/mm/yyyy in the VO.on UI page it is showing dd/mm/yyyy format.but it is storing in the database as yyyy/mm/dd format.Here my problem is when i set periodFrom and periodTo values to the JobDescription,the JobDescription format is showing yyy/mm/dd format.here i want to show the JobDescription also dd/mm/yyyy format on the UI page.here JobDescriptin type is string.can anyone help me out please...
    Thanks,
    G.Shilpa

    Hi,
    you can use SimpleDateFormat to parse Date objects to formatted Strings
    SimpleDateFormat (Java Platform SE 7 )
    Note that dependent in your Date type you may deal with Date or SQL Date in ADF BC. SqlDate woild need to be converted to Date first and then parsed into a formatted String. I suggest you Google for SimpleDateFormat examples
    Frank

  • How to change the date format from default to mm-dd-yyyy?

    Hi,
    There is a requirement to show the current date in an error message at the attribute level. That is, if the user input a date in a text field that is earlier than today's date, then an error message must immediately pop up with today's date in the message. To achieve this we are using a token expression in the EO ( Under Validation rules) . The token expression uses adf.currentDate to get today's date.
    The problem is that the expression extracts the date in the form of yyyy-mm-dd. What expression should I use to get the current date format in mm/dd/yyyy ? Can I modify the adf.currentDate expression in some way to get the desired format?
    Thanks,
    Anand

    You could write a custom EO method to return today's date in the specific format. Then access it via the Groovy adf.object expression.

  • How to get Date Format from Local Object.

    Hi All,
    I am new to Web Channel.
    I need to know Date format From date of locale.
    suppose there is a date "01/25/2010" date in date field I want to get string "mm/dd/yyyy". Actually I have to pass date format to backend when I call RFC. 
    Is there any way to get Date format from "Locale" object. I should get date format for local object
    I get local object from "UserSessionData" object but how to get Date format from it.
    I am not looking for Date value. I am looking for current local date format ("mm/dd/yyyy or dd/mm/yyyy or mon/dd/yyyy) whatever local date format.  I could not find example which show how to get date format from "Locale" object.
    Any help will be appreciated with rewards.
    Regards.
    Web Channel

    Hi,
    You can get it from "User" or "Shop" business object.
    Try to get User or Shop Business Object as shown below.
    BusinessObjectManager bom = (BusinessObjectManager) userSessionData.getBOM(BusinessObjectManager.ISACORE_BOM);
    User user = bom.getUser();
    char decimalNotation = user.getDecimalPointFormat().getGroupingSeparator();
    If you are seeing "1,234.00" then above code will return "."
    I hope this information help you to resolve your issue.
    eCommerce Developer.

  • How do I get the date format of MM/DD/YYYY to be recognized in Numbers?

    I recently switched from Windows and Excel.  All the bank details that I export from my bank have dates formatted as mm/dd/yyyy.  Excel has no issues dealing with this but Numbers will not recognize the cell contents as a date.  Any help?

    I have similar problems with data copied & pasted from a banking web page into Numbers. I always first check to see that the cells are formatted as date & time, but that doesn't always fix the problem. The problem usually ends up being spaces before and/or after the numbers in a cell.

  • How can I change defaut date format to dd-mon-yyyy in bi analytics

    hi..
    How can I change the default date format to DD-MON-YYYY in BI Analytics...
    I am passing a date in a report from a prompt....but it is always taking "dd-mon-yyyy hh:mm:ss" format...I want to input the prompt in oracle's default date format i.e dd-mon-yyyy..
    please help...I dont want to use cast function because it will convert the date into a character value....I want a date...

    Hi USer
    Try this link
    How to change date format in OBIEE
    Re: repository variable at date prompt
    Thanks
    Diney

  • How to convert date format to MM/DD/YYYY

    Hi,
       How to convert date format to MM/DD/YYYY.
    Thanks,
    Senthil

    hi,
    tri with this function module
    data :l_date(10) type c
    CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
    EXPORTING
       DATE_INTERNAL                  = SY-DATUM
    IMPORTING
       DATE_EXTERNAL                  = l_date.
    this function module converts date from 20050601 to external format  which is specified in user profile
    cheers,
    sasi

  • Date format from DD/MM/YY to YYYYMMDD

    Hi Guys,
    Date foramt DD/MM/YY(23/09/08) is coming from the flatfiles  
    (text files). I want to convert it to YYYYMMDD format.
    Is it possible to convert date format from DD/MM/YY to
    YYYYMMDD?
      I'm in BI 7.0 environment.When I load date like DD/MM/YY
      (23/09/08) till PSA.In PSA it is showing 08.0/.06/9.
      Please suggest me the right way.It is very impartant for us.
      Thanks
      Prasad

    Hi Guys,
    I understand that this leads to degrade the loading
    Performance.But I don't have the alternative.
    When I use the RSDAT in data source conversion routine it is
    throughing the below error.
    "Error 'Date   .30.0806 contains invalid characters...' at conversion exit CONVERSION_EXIT_RSDAT_INPUT (field CALDAY record 1, value 6/30/08)"
    Can any body suggest me the other way or any other date
    converion routine from 23/09/08 to YYYYMMDD without slash?
    Thanks
    Prasad

Maybe you are looking for

  • IPod not recognized by iTunes 6

    So it looks like a lot of people are having this problem, that after upgrading to iTunes 6, the iPod doesn't connect to iTunes, even though it flashes "do not connect" as it is plugged in. Further the ipod has an error message once unplugged and simp

  • How to send invitations from iCal in a different language?

    My MBP is setup for Dutch, but when I make an invitation in iCal I want this to be send in English. How can I achieve this automatically (and easy)? Bert

  • Media Browser not working

    Hi, I'm using CS5.5 trial version on a dell that has previously been used to  make good quality films.  The Media Browser has stopped working.  When I double click it shows a list of my media, when I then double click to open a file an arrow at the s

  • Controlling the main time line of a movie via a button within a movie on a different level.

    Hi there! I have two movie is two different levels, Level 5 is my base movie and I am loading another movie on top of this into level 10. Once the user clicks onto a button within the movie on level 10, I would like the animation in level 5 to stop (

  • SRM7 Supplier self registration

    Dear Gurus, I'm analyzing the supplier registration in SRM7 using the supplier self service. I have the following questions: 1. During the supplier registration are 2 approval level process available (the first once the supplier has registered his ba