Format MM/YY for date

hi, i need to convert date format in screen field to be - MM/YY
and not dd.mm.yyyy.

thank u for all your answer..
i "solved" the problem by checking the content of the field my self
IF p_start CA '/' AND p_end CA '/'.
    SPLIT p_start AT '/' INTO lv_start_month lv_start_year.
    SPLIT p_end AT '/' INTO lv_end_month lv_end_year.
    IF lv_start_month BETWEEN 1 AND 12
      AND  lv_end_month BETWEEN 1 AND 12.
      IF STRLEN( lv_start_year ) <> 4
        OR STRLEN( lv_end_year ) <> 4.
        MESSAGE w031(zpm_notif) .
  Format Date needs to be - MM/YYYY
      ENDIF.

Similar Messages

  • Can't restore backup, I don'find the right format to use for date with RMAN

    Hi I would like to restore my database to a point in time but I can't because I am not able to find the NLS_DATE_FORMAT to use.
    I don't know how to alter the session parameters at the RMAN prompt
    I would like to restore to this time set until time 'May 10 2006 08:48:10';
    Can't some one just tell me how to use thise settings? Please it is urgent

    I am on Debian
    SQL> show parameter NLS_DATE_FORMAT;
    NAME TYPE VALUE
    nls_date_format string
    SQL> select sysdate from dual;
    SYSDATE
    10-MAY-06
    RMAN> sql "alter session set nls_date_format = 'DD-MON-YYYY HH24:MI:SS'";
    using target database control file instead of recovery catalog
    sql statement: alter session set nls_date_format = 'DD-MON-YYYY HH24:MI:SS'
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of sql command on default channel at 05/10/2006 10:21:44
    RMAN-10015: error compiling PL/SQL program
    RMAN-10014: PL/SQL error 103 on line 4 column 57: Encountered the symbol "HH24" when expecting one of the following:
    . ( ) , * @ % & | = - + < / > at in is mod remainder not rem
    => .. <an exponent (**)> <> or != or ~= >= <= <> and or like
    LIKE2_ LIKE4_ LIKEC_ between || member SUBMULTISET_
    For sure I am stupid but why is it so difficult to just set the time

  • I need format for data in excel file load into info cube to planning area.

    Hi gurus,
    I need format for data in excel file load into info cube to planning area.
    can you send me what should i maintain header
    i have knowledge on like
    plant,location,customer,product,history qty,calander
    100,delhi,suresh,nokia,250,2011211
    if it is  right or wrong can u explain  and send me about excel file format.
    babu

    Hi Babu,
    The file format should be same as you want to upload. The sequence of File format should be same communication structure.
    Like,
    Initial columns with Characteristics (ex: plant,location,customer,product)
    date column (check for data format) (ex: calander)
    Last columsn with Key figures (history qty)
    Hope this helps.
    Regards,
    Nawanit

  • Input Value long enough for date format ,Error in executing parallel query

    Hi,
    My Table: ANML( ID, STATUS,B_DATE,B_MONTH,B_YEAR, DEATH_DATE)
    status 1 for alive and 2 for dead.
    i wrote a view to get age.
    as
    create or relace view view1 as
    select top."ID",top."STATUS",top."DOB",top."DEATH_DATE",top."ANML_AGE",top."DAYSDIFF",
    CASE
    WHEN anml_age < 1
    THEN 'D'
    ELSE 'M'
    END age_unit,
    CASE
    WHEN anml_age < 1
    THEN TO_CHAR (daysdiff || ' Day(s)')
    WHEN anml_age < 12
    THEN TO_CHAR (anml_age || ' Month(s)')
    WHEN MOD (anml_age, 12) = 0
    THEN TO_CHAR (ROUND (anml_age / 12, 0) || ' Year(s) '
    ELSE TO_CHAR ( ROUND (anml_age / 12, 0)
    || ' Year(s) '
    || MOD (anml_age, 12)
    || ' Month(s)'
    END age_string
    from
    (SELECT a.*,
    CASE WHEN status IN ( 1)
    THEN FLOOR(MONTHS_BETWEEN(TRUNC(SYSDATE),dob))
    WHEN death_date IS NOT NULL AND status IN (2)
    THEN FLOOR(MONTHS_BETWEEN(death_date,dob))
    END anml_age,
    CASE WHEN status IN (1)
    THEN FLOOR(TRUNC(SYSDATE)-TRUNC(dob))
    WHEN death_date IS NOT NULL AND status IN (2)
    THEN FLOOR(TRUNC(death_date) - TRUNC(dob))
    END daysdiff
    from (
    SELECTanml.id, status,
    TO_DATE ( DECODE (b_date,
    NULL, 1,
    b_date
    || '-'
    || DECODE (b_month,
    NULL, 1,
    b_month
    || '-'
    || b_year,
    'dd-mm-yyyy'
    ) DOB,
    death_date
    FROM anml
    WHERE b_year IS NOT NULL
    ) a) top
    when i tried to fetch all values from view its working fine.
    But when i tried to fetch values based on condition like as follows,
    select * from view1 where anml_age > 20 and anml_age<30
    I am getting error like:
    Input Value long enough for date format and Error in executing parallel query
    Please tell me wht is wrong.

    Here is your formatted code
    create or relace view view1 as
    select top."ID",top."STATUS",top."DOB",top."DEATH_DATE",top."ANML_AGE",top."DAYSDIFF",
    CASE
    WHEN anml_age < 1
    THEN 'D'
    ELSE 'M'
    END age_unit,
    CASE
    WHEN anml_age < 1
    THEN TO_CHAR (daysdiff || ' Day(s)')
    WHEN anml_age < 12
    THEN TO_CHAR (anml_age || ' Month(s)')
    WHEN MOD (anml_age, 12) = 0
    THEN TO_CHAR (ROUND (anml_age / 12, 0) || ' Year(s) '
    ELSE TO_CHAR ( ROUND (anml_age / 12, 0)
    || ' Year(s) '
    || MOD (anml_age, 12)
    || ' Month(s)'
    END age_string
    from
    (SELECT a.*,
    CASE WHEN status IN ( 1)
    THEN FLOOR(MONTHS_BETWEEN(TRUNC(SYSDATE),dob))
    WHEN death_date IS NOT NULL AND status IN (2)
    THEN FLOOR(MONTHS_BETWEEN(death_date,dob))
    END anml_age,
    CASE WHEN status IN (1)
    THEN FLOOR(TRUNC(SYSDATE)-TRUNC(dob))
    WHEN death_date IS NOT NULL AND status IN (2)
    THEN FLOOR(TRUNC(death_date) - TRUNC(dob))
    END daysdiff
    from (
    SELECTanml.id, status,
    TO_DATE ( DECODE (b_date,
    NULL, 1,
    b_date
    || '-'
    || DECODE (b_month,
    NULL, 1,
    b_month
    || '-'
    || b_year,
    'dd-mm-yyyy'
    ) DOB,
    death_date
    FROM anml
    WHERE b_year IS NOT NULL
    ) a) top

  • Date format in invoice for

    hi,
    us company code is billing to uk customer and the date format in the oy01 tcode is maintained for uk country as dd.mm.yyyy and for us it s maintained as mm/dd/yyyy now the requirement is if us company code is billing irrespective of the customer, date format for due date(which is calculated by adding the no. of days in the payment terms ) in the invoice should be mm/dd/yyyy but here it is appearing as dd.mm.yyyy as customer belong to uk is there any standard setting where in this requirement can be met, i have also checked date format in su01 for the user id it is not effecting the out come.
    kindly guide.
    thanks

    hi shakeer,
    execute SU01 goto DEFAULTS - there date format will be there.
    please change as per your requriment.
    hope this clears your issue
    balajia

  • NEED ALTER TABLE ALTER COLUMN FOR DATE FORMAT

    Need something like this :
    ALTER TABLE ABC
    ALTER COLUMN DATE1 AS (DD/MM/YYYY)
    need to appear in this format (29/03/2014) in the table.
    also needs to be recorded in DB in that format.

    changed system date format, works. Thanks!
    You should always store values as dates itself in date/datetime related field in SQLServer
    The formatting can very easily be done in your front end (presentation layer) using format function
    Even in T-SQL you can use CONVERT or FORMAT functions to get the date values in the format you want
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page
    I don't follow you? Anyway, Olaf Helper's answer was the solution.
    SQL Server has a data type called DATETIME. To correctly query dates, it is easier to use this as it allows the SQL engine to do all the calculations for you, also the canonical format for dates in any database language is YYYY-MM-DD, this ensures correctly
    tiered dates that are stored in the right order. The way you store data and the way you display it should be kept as two seperate entities. This is the ISO standard and has been thoroughly investigated ...alot to say the least. This is where the term "front-end"
    and "back-end" developers come from, and also the distinction between server-side and client-side scripting.
    To cut a long story short, take the advice of the multiple professionals here, and follow standards otherwise you'll find yourself stuck, or worse, your legacy code will make someone tear their hair out.

  • Effective format for dates in a JFormattedTextField

    Hello!
    How can I configure a JFormattedTextField to accept dates while showing the mask for dates? I mean, the first time, when the field is empty, it shows only the mask: __/__/___. When the user edit the field it automatically skips the literal characters, going to the place of the numbers. I don't want to force the user to type the date separator characters. I don't want to do just something like this:
    DateFormat format =  new SimpleDateFormat("yyyy/MM/dd");
    DateFormatter df = new DateFormatter(format);
    JFormattedTextField ftf1 = new  JFormattedTextField(df);
    ftf1.setValue(new Date());This code doesn't really adds the '/' as a mask.
    Thank you.
    Marcos

    Like a mentioned before there is are data pickers out
    there that make is one line for the programmer and
    even easier for the user. (Who want to type in a
    date).I don't want to user thirdy party components just to handle dates.
    Basic things should be simple. Why?Because we do them all the time. The Java language is simple. I'm just complaining about the Swing API.
    In programming, I have found that instead that things
    that should be simple normally aren't.
    I agree with you, but a component that just accept dates with a mask for dates is a simple thing today and always will be. Why don't provide an easy way for you to accomplish this?
    Everyday things should be simple.
    Why this API is so taugh? I don't know what taugh means.
    I mean hard to use.
    It s a pain to program in Swing, it even hurts. Have you ever tried AWT?,
    We loose a big time searching for ways to do simplethings.
    Sorry to here, that, but it sounds like a personal
    problem. Use, the API, the tutorials, and pratice
    practice pratice.
    I think that Swing, even with its problems, is the right visual api to use. I'm just saying that it makes you write lots of code to things that could be done with less code.
    I think you will find that Swing's inabitlity to be
    simple allows it to be very flexiable.
    I know, its flexible, but most of the time we don't need the flexibility that it offers. Most of the time we are doing basic things and should use its flexibility only when needed.

  • Why can't I set the Date format in English for Malaysia Region for my iPhone and iPad?

    Why can't I set the Date format in English for Malaysia Region for my iPhone and iPad?

    Apple should change the settings to Malaysia -> Malay / English / Chinese / Tamil

  • [Access 2010] Change default formats for data types

    Whenever I import data, the default format for Boolean data types is "-1,0." I know how to subsequently change this format to "Yes/No," but I'd like to change the default
    setting to "Yes/No." Is this possible?
    Thanks in advance.

    Hi,
    I found you post the same question in other place and got the advice. I agree with Mr. Kees suggestion. The data type is a build-in default setting with Access, we can't change it. We may try the workaround via VBA to test.
    http://forums.cnet.com/7723-6129_102-627633/access-2010-change-default-formats-for-data-types/#message5617496
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Have a good time.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Can you specify format mask for date or timestamp columns

    Hi,
    Recently when I'm developing a PL/SQL application, I find that any format mismatch between data in table and format mask specified in to_date/to_timestamp function will cause exceptions. However, I'd like to make my application more robust and immune to this kind of problems, and know exactly which format mask to use for exactly what columns in db table.
    Is there a way in a table column to specify the format mask for date/timestamp columns such that I can know exactly what format mask to use when doing conversion? Also I don't want to depend on NLS_DATE_FORMAT specification, don't want to make a long case statement to check for every date format allowed by Oracle.
    Many thanks.

    As per my knowledge it can't be possible
    casuse if you entered '12/11/2007' date
    how oracle know that in date 12'th is the month or 11'th.
    The person who entered that date will also have confusions in future.
    either you have to fix one date format for your whole application (application configuration).
    or you have to store the date format in other column of the table.
    In case you set the date column to varchar and store all the dates without format then
    in future you may face problems in future while fetching the records, searching etc.
    Regards
    Singh

  • Can you change format for dates shown in edit bar

    Hello,
    I am trying Numbers out as a replacement for Excel. But there is one annoyance that I don't like. I have a date column (formatted as a UK date DD/MM/YY).
    However when I select the date to edit it the date shown in the formula/edit bar is shown with the month in character form, e.g. 04 Jul 09.
    I find this annoying and I want the date shown there as an all digits date like with the value displayed in the cell.
    Does anyone know if I can change this? If so how?
    Thank you.

    OK.
    I didn't understood this way.
    You are lucky if it's your unique problem.
    Look at what I get here:
    Yes, it's my exact birthday but it is displayed a silly way. Isn't it ?
    It's awful when I must edit a date.
    When I reported that, I was responded that it's the normal behavior.
    Happily, it doesn't behave this way under 10.6
    Yvan KOENIG (VALLAURIS, France) vendredi 25 septembre 2009 18:57:15

  • How do you get fields to format for dates automatically?

    I have Acrobat 9.0 and created a text field in a form for "date".  I have set the format as date mm/dd/yyy but keep getting an error msg when I enter dates "Invalid date/time ...".  I want to be able to enter 05161987 and have it format automatically as
    05/16/1987.

    No, it does not. One needs to deal with international date format and sequences and users who do not want to enter leading zeros.

  • JQuery format mask for date columns in tabular form

    Hi,
    How can I apply jQuery format mask for date columns in a tabular form?
    Thanks.
    Andy

    OK, I realized I didn't choose the default type as "Pl/SQL Expression", now it's working correctly.
    Thank you very much!

  • Transformations for Date Format

    I have a flat file which contains a field for date as 02-10 for MMYY, how can I change it to 0210, can I use formula builder?

    Hi,
    Copy and Past teh below program, and implement the same logic for your requirements.
    REPORT  ZBITEST.
    Data: zdd type sy-datum,
          zmm(2) type n,
          zyy(4) type n,
          zd(2) type n,
          zdm(6) type n.
          zdd = sy-datum.
          zd = zdd+6(2).
          zmm = zdd+4(2).
          concatenate zd zmm into zdm.
          write:/ zdd.
          write:/ zd.
          write:/ zmm.
          write:/ zdm.
    Thanks
    Reddy

  • Error Message for Date Format

    Hi Friends,
    Could you guys help me with sample code in java script to throw error message if the user enter the wrong date format( my requirements of date format like yyyymmdd)in BSP.
    Regards
    CSM Reddy

    you dont have to write the js code.
    just set the input field<b> type = date</b> and <b>dovalidate=true</b>
    if the user tries to submit the form with wrong format, the system will throw javascript error message and will not submit the form.
    Regards
    Raja

Maybe you are looking for

  • Getting report out put in another language (other than english).

    Hi all, can any one help me out in getting report out put in proper language (english). actually i am running my layout through wizard.it show in english at report level but when i publish with oracle application it showing the out in another fassion

  • Why is the .wav file removed from text messages?

    Why is my IPhone removing the .wav file that is being sent via text message to my phone? If I send it via an email it comes in but not via a text message sent to my phone number.

  • Nested Tables & Repeating Sub-group Row

    I'm using BIP re-grouping in conjunction with nested tables to avoid repeating some rows within my 'master' table. However, I'd like to repeat this sub-group row when the particular detail associated with that group spans multiple pages. Any advice o

  • ITunes won't see iPhoto libraries

    I have iTunes 10 and iPhoto 8 (7.1.5). i want sync my iPod Touch with one of my iPhoto libraries, but it will not see the library that is open in iPhoto. How do i force iTunes to see the iPhoto library.

  • QT Pro registration fail

    I'm running QT Player Version 7.6.6 (free) and I want to use a Pro feature (Open Image Sequence) so I've purchased a registration key for QT Pro 7. When I go to 'Register' (Quicktime Player / Registration...) nothing happens - no window opens to prom