Converting Date Column to format MM/DD/YYYY in RPD

Hi all,
I have a requirement like converting a Date column to format MM/DD/YYYY in RPD. Any help as we are not supposed to use the BI Answers Data Fomat for showing this format.
Thankyou,
Edited by: [email protected] on May 10, 2010 11:49 PM

Hi Saichand,
I need the resulting column in DATE format only. The solution which you specified converts the datatype to character. Is there anyway to convert the format but not the datatype.

Similar Messages

  • How to convert a date field with format (dd,mm,yyyy) to format (mm,dd,yyyy)

    Hello.
    How to convert a date field with format (dd,mm,yyyy) to format (mm,dd,yyyy)
    I have text field which has a databind to a date field. When I click on it, we can select the date, it is added on the format (dd,mm,yyyy). When I want to insert this date field to a database It doesnu2019t allow me to do it because it will only accept date field on the format (mm,dd,yyyy)
    I tried to store this format on a date variable and I get a message saying that is impossible to convert a string into a date.
    Regards,
    Jose

    Hi Jose,
    usually you format strings in c# like
    string.Format("{0:yyyyMMdd}", insertyourstring);
    in your case
    string.Format("{0:MM/dd/yyyy}", insertyourstring);
    [look here|http://idunno.org/archive/2004/14/01/122.aspx]
    there are more details
    if everything fails split the string with Mid()
    or ask me
    lg David

  • How to convert sysdate to the format dd-mon-yyyy

    how to convert sysdate to the format dd-mon-yyyy

    <how to convert sysdate to the format dd-mon-yyyy>
    This question is better answered by thinking about about how Oracle dates work. SYSDATE is a pseudocolumn (function without any arguments) that returns a date value: it already is a date. Oracle date values are stored not as we see them, say 'DD-MON-YY', but as a series of bytes with the different date components from the millennium down to the second. We NEVER see dates as they are stored but use the formats for automatic conversion.
    To display a date the way you want use TO_CHAR() with an edit mask or as others suggested change your NLS_DATE_FORMAT (thought I advise against this as most systems use DD-MON-YY and porting queries from other systems or even OTN can easily break). To change a converted string back to a date use TO_DATE() with an edit mask.

  • How to convert date from ccyymm format to mmddyy

    hi,
    How to convert date from ccyymm format to mmddyy

    Please don't multipost. This question has been answered in your first post.
    How to convert date to ccyymm format
    Regards,
    Jo

  • How to convert date to ccyymm format

    Hi,
    How to convert date to ccyymm format.
    Thanks

    dadivela wrote:
    Re: How to convert date from ccyymm format to mmddyyI didn't inderstand. Date doesn't have any format. If you have a string in CCYYMM format, you would have to extract the YYMM from the string.
    SQL> SELECT   SYSDATE,
      2           TO_CHAR (SYSDATE, 'ccyymm') Date_Fm,
      3           SUBSTR (TO_CHAR (SYSDATE, 'ccyymm'), 3) YYMM
      4    FROM   DUAL
      5  /
    SYSDATE   DATE_F YYMM
    08-JUN-09 210906 0906You can use this string to convert it to date. Note that since DD part of your date was not their in the resultan string, the converted date will fall back to first of the month specified.
    SQL> SELECT   SYSDATE,
      2           TO_CHAR (SYSDATE, 'ccyymm') Date_Fm,
      3           SUBSTR (TO_CHAR (SYSDATE, 'ccyymm'), 3) YYMM,
      4           TO_DATE (SUBSTR (TO_CHAR (SYSDATE, 'ccyymm'), 3), 'YYMM') conv_Dat
    e
      5    FROM   DUAL
      6  /
    SYSDATE   DATE_F YYMM             CONV_DATE
    08-JUN-09 210906 0906             01-JUN-09
    SQL>Then convert the date into the required format using TO_CHAR Function
    SQL> SELECT   SYSDATE,
      2           TO_CHAR (SYSDATE, 'ccyymm') Date_Fm,
      3           SUBSTR (TO_CHAR (SYSDATE, 'ccyymm'), 3) YYMM,
      4           TO_DATE (SUBSTR (TO_CHAR (SYSDATE, 'ccyymm'), 3),
      5                   'YYMM') conv_Date,
      6           TO_CHAR(TO_DATE(SUBSTR(TO_CHAR (SYSDATE, 'ccyymm'),3),
      7                   'YYMM'), 'MMDDYY') New_Format
      8    FROM   DUAL
      9  /
    SYSDATE   DATE_F YYMM             CONV_DATE NEW_FO
    08-JUN-09 210906 0906             01-JUN-09 060109
    SQL>Hope this helps.
    Regarads,
    Jo

  • Date column with format mask 'hh12:mi pm'

    let's say the user input record as shown below :
    trip At01 At02
    1 9:30 AM 12:30 PM
    At02 & At02 are date column with format mask 'hh12:mi pm'. When the user input 9:30 and tab to next item, the column will display as 09:30 AM. Then when user input 12:30 at AT02, it will display as 12:30 PM.
    Anyway, if I enter 1:00 at AT02, it will display as 01:00 AM. Actually I want to display as 01:00 PM. I still can go back to the field to edit it manually but is there a way that I can do as mentioned ?
    Please advise.
    Thanks,
    Shu Wen

    You are going to have to write your own validation logic to do this - You'll have to decide what point AM shoudl be defaulted and what point PM should be used. I don't think that there is a format mask that provides this functionality.

  • How to convert date from "yyyymmdd" to "MM/DD/YYYY" format

    1. I have one BLDAT field in my internal table.
       its getting updated from input file.
    2. The value in the input file is like yyyymmdd.
       So the internal table field is filled like this
       "YYYYMMDD".
    3. After this,I have to compare this internal table  
       field with BSAD table.
    4. The BLDAT field in BSAD table is in the format of 
       "MM/DD/YYYY".
    5. the BLDAT field is having diff format in internal  table and BSAD table.So I am unable to check this value.
    How to convert it as like the BSAD table format."MM/DD/YYYY" format.
    Thanks in advance!!

    Using the WRITE statement
      data: gd_date(10).  "field to store output date
    * Converts date from 20020901 to 09.01.2002
      write sy-datum to gd_date mm/dd/yyyy.
    OR u can
    CONCATENATE gd_date+4(2) gd_date+6(2) gd_date+0(4)
    into gd_date seperated by '/' .
    Hope this helps.
    Kindly reward points and close the thread for the
    answer which helped u OR get back with queries.

  • Convert date to internal format

    Hi,
    I am getting date in the format as detailed below:
    10/16/2005, 6/16/2005, 10/6/2005 - MM/DD/YYYY
    I have to convert it to the internal date format.
    Please help with the code.
    Thanks
    SAPBW

    Hi,
    Use Function module <b>CONVERT_DATE_TO_INTERNAL</b>.
    It will consider all types of date formats 10/16/2005, 6/16/2005, 10/6/2005 etc. Whether you will give 1 or 2 digits to month or date. You can also give 2 digits to year even then it will converts to internal format.
    <b>You need to give dates in User defined format otherwise it generates an exception DATE_EXTERNAL_IS_INVALID.</b>
    DATA V_EXT_DATE(10) VALUE '10/06/2005'.
    DATA V_DATE TYPE SY-DATUM.
    CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
      EXPORTING
        date_external                  = V_EXT_DATE
      IMPORTING
        DATE_INTERNAL                  = V_DATE
      EXCEPTIONS
        DATE_EXTERNAL_IS_INVALID       = 1
        OTHERS                         = 2.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    WRITE:/ 'INTERNAL FORMAT OF DATE IS: ', V_DATE.
    Thanks,
    Vinay
    Thanks,
    Vinay

  • Validating a text field that has date in the format mm/dd/yyyy

    How can I validate a text field such that it should be in the format mm/dd/yyyy and it should not be greater that a particular date.
    for example the date I enter should not be greater than 01/01/2007

    What you can do is use the SimpleDateFormat class to try and parse the text date into a Date object like this:
    SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy");
    Date mydate = sdf.parse(textdate);if that fails than the date has the wrong format (you'll get a ParseException if I'm not mistaken).
    The next step is to create a Date for 1/1/2007 and then do a date compare between your two dates. You can create a date yourself using the Calendar class.

  • How to convert date to system format

    Is there any function module for converting the date in YYYYMMDD format to our own system format. eg. 21.07.2006

    Hi Abinaya,
    Use this func module <b>CONVERSION_EXIT_PDATE_OUTPUT</b>
    Please award points if u find it useful
    Regards,
    Viven

  • Convert date in sql format

    how to convert a date in string format to sql date format?
    thanx in advance

    Use java.text.SimpleDateFormat to parse the String into a java.util.Date.
    Create a java.sql.Date from the java.util.Date.
    Use a PreparedStatement and its setDate() method to set the date in the SQL. The JDBC driver will take care of putting that java.sql.Date object into the correct format for your DB.

  • Data column number formatting in Excel

    Can I overwrite the formating for the data columns in excel?
    For calculation purposes I need 2 decimal places defined for the data columns but when I display I dont want to see the decimals, I want to see the rounded number. But I cannot format this on the excel. Any suggestions?
    Thanks!
    Hema

    Hi,
    In the definition of your planquery, go to the properties of your key figure and assign the number of desired figures behind the comma.
    -> in your workbook if you click on your cell, you will see the number of figures behind the comma according to your info-object in the formula bar, but in the layout itself it is rounded according to your query settings
    D

  • Routine to convert dats to dec format

    Hi experts..
                     I have one cube having date in DEC format and flatfile having date in DATS(yyyymmdd) format. i have used a routine in transfer rules as follows..
    DATA: dats1 type p.
    dats1 = TRAN_STRUCTURE-calday.
    RESULT = dats1.
    but i m not getting the date in cube in DEC format...?
    Plz correct me...

    sorry use TYPE /BIC/OIZDEC_DATE instead of LIKE...
    one question, how is this filed stored in your cube fact table at the end?
    Can you see the /BIC/F<cube> value in SE16 and let me know?
    Can you also try to post your yyyymmdd directly without any routine? What's the result?
    Perhaps the system converts it automatically into yyyymmdd anyway; this would mean that the behaviour is correct thus why do you want to post the numeric representation anyway??
    Olivier.
    Message was edited by:
            Olivier Cora

  • How to convert date in varchar format to TimeZone format?

    Hi,
    Iam having a date '14-05-08 09:46:35 AM' (in Varchar format). How to convert this date to TimeZone ('IYYY-MM-DD"T"HH12:MI:SS"Z"FX') format?
    For Example,
    My input date is '14-05-08 09:46:35 AM' and I need output as '2008-05-14T09:46:35Z'.
    How to convert this?
    Thanks in Advance.

    Hi,
    You would look up the TO_TIMESTAMP and the TO_CHAR functions in the SQL reference manual for the version you don't mention, and make up the solution yourself, rather than asking someone else to do your homework.
    Sybrand Bakker
    Senior Oracle DBA

  • Converting date in french format

    Hi All,
    Hi All,
    Please let me know if you have any idea
    I am converting the date to French /infact multi lang
    select to_char(sysdate,'Fmddth Month, yyyy','NLS_DATE_LANGUAGE =FRENCH') from dual
    so this is giving me "8th Septembre, 2011"
    but what i want is "8er Septembre, 2011" instead of "th" i need "er"
    Thanks & Regards,
    Dhana

    from http://download.oracle.com/docs/cd/B19306_01/server.102/b14225/ch3globenv.htm
    Example 3-12 NLS_DATE_LANGUAGE=FRENCH, Month and Day NamesAs an example of how to use NLS_DATE_LANGUAGE, set the date language to French:
    ALTER SESSION SET NLS_DATE_LANGUAGE = FRENCH;
    Enter a SELECT statement:
    SELECT TO_CHAR(SYSDATE, 'Day:Dd Month yyyy') FROM DUAL;
    You should see output similar to the following:
    TO_CHAR(SYSDATE,'DAY:DDMONTHYYYY')
    Vendredi:07 Décembre 2001
    When numbers are spelled in words using the TO_CHAR function, the English spelling is always used. For example, enter the following SELECT statement:
    SQL> SELECT TO_CHAR(TO_DATE('12-Oct.-2001'),'Day: ddspth Month') FROM DUAL;
    You should see output similar to the following:
    TO_CHAR(TO_DATE('12-OCT.-2001'),'DAY:DDSPTHMONTH')
    Vendredi: twelfth Octobre

Maybe you are looking for