Date format 'mm/dd/yy',mm/dd/yyyy'-output difference???

Hi All,
I have a doubt regarding Date Format.
Here is a procedure to find out the Day of week.
procedure transformDate(mydate varchar2,myno number)
is
v_date date;
begin
myprint(chr(10));
myprint(' Result of OverloadedProcedure2');
myprint('---------------------------------------');
v_date:=to_date(mydate,'mm/dd/yy')+myno;
myprint('The day in which '||to_char(v_date)||' falls is '|| to_char(v_date,'Day'));
end transformDate;          
SQL> exec OverLoadedProcs.transformDate('10-28-04',2)
Result of OverloadedProcedure2
The day in which 30-OCT-04 falls is Saturday
PL/SQL procedure successfully completed.
The above one works well.
But if i change the format as given below,
v_date:=to_date(mydate,'mm/dd/yyyy')+myno;
SQL> exec OverLoadedProcs.transformDate('10-28-04',2)
Result of OverloadedProcedure2
The day in which 30-OCT-04 falls is Thursday
PL/SQL procedure successfully completed.
i do not get desired output.Why is it so?.Can anyone explain me?
Regards,
Sreeji.

While I always use four digit years, if you want it too work, try
procedure transformDate(mydate varchar2,myno number)
is
v_date date;
begin
myprint(chr(10));
myprint(' Result of OverloadedProcedure2');
myprint('---------------------------------------');
v_date:=to_date(mydate,'mm/dd/rr')+myno;
myprint('The day in which '||to_char(v_date)||' falls is '|| to_char(v_date,'Day'));
end transformDate;

Similar Messages

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

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

  • How to change Date format in Bex to DD/MM/YYYY

    Dear all,
    i have date settings as DD.MM.YYYY in user profile.but the Bex report is showing the date as MM/DD/YYYY. How can i change this to DD/MM/YYYY? If i have to write a customer exit then please advise ?
    Thanks in advance
    Regards
    Ravi

    Hi ravi
    look at these previous threads
    Date format change
    Problem in date format
    Regards
    NR

  • Change Date format to Global Standard dd/mm/yyyy

    How do you change the default date format the one the rest of planet Earth use.... ie DD/MM/YYYY. The Nth American format mm/dd/yyyy is not the centre of the known universe.....
    and yes centre is spelt correctly
    iBook G4   Mac OS X (10.4.4)  

    thanks Gerry, my sys prefs are default to the non Nth American, I did manage much later the right click and change the template, however, I'm still using the Trial iWorks'06 so perhaps thats why it didnt pick the "Proper" date format from sys prefs.....!
    Thanks for taking the time to reply... G5 HmmmmNice, I hope to keep going on this until its 3rd birthday, March 17th 2007...
    Take care
    Michael
    iBook G4   Mac OS X (10.4.4)   EirPod - a view from Ireland

  • Changing date format to look like dd-mm-yyyy

    I want to use the date format as 25-12-2010 (day-month-year). I could not find how. Is there a place to change that? Can I make custom formats for dates?
    Hursat

    Hursat,
    I must admit, I just noticed that you are using Numbers 08. Perhaps there is something different in Numbers 09. If so, I apologize. I don't presently have access to Numbers 08 to check.
    Numbers 08 Help says:
    . To add and format the date and/or time, place the insertion point where you want the value to appear, and then choose Insert > Date & Time.
    . To change the date and time format, Control-click the date and time value, choose Edit Date & Time, and then choose a date and time format from the pop-up menu. If you want the spreadsheet to always show the current date and time, select “Automatically update on open.”
    Based on this help, there's not much difference. Try a text box and see if you can insert date and time there.
    Jerry

  • Date format and Alignment Change in the Excel Output.

    Hi Forum,
    Greetings to You!!!
    I was created one RTF format file. In this i have to display date format as (dd-mon-yyyy) in the excel output and also some data in the column have varchar2 and numbers. When i generate the output in html, pdf format using the xml file its coming fine.
    When i generate the output in excel format then date format is changing to dd-mon-yy and who have data in number format is automatically going to rtight alignment.
    But client need all the date output in the left alignment (dd-mon-yyyy) ..Please advice me ..
    Thanks & Regards,
    Nag.CH

    Hi Helios,
    Thanks for giving reply. We are using 11.5.10.2 Application . We are not using any ADI..I just run the xml file in my local system itself in excel format..Date format is coming dd-mon-yy.Not in Apps environment.
    Thanks,
    Nag

  • Convert Date Format from DDMMYY to DD/MMM/YYYY

    Hi,
    Thanks in Advance.
    Is there any function Module to Conver the Given Date in the given Below Format.
    DD / MMM / YYYY
    For Example if the given date is 16072009 then it should print as 16 / JUL / 2009
    Regards:
    Sridhar.J

    hi
      use the below code it may help u
    PARAMETERS: p_date TYPE d.
    DATA: datestring TYPE char11,   l2 TYPE T247-KTX.
      CALL FUNCTION 'ISP_GET_MONTH_NAME'
        EXPORTING
         date               = p_date
          language          = 'E'
         month_number       = '00'
       IMPORTING
         shorttext          = l2        .
      IF sy-subrc <> 0.
      CONCATENATE p_date6(2) '/'    l2 '/'       p_date0(4) INTO datestring.
      WRITE: datestring .
    surya reddy

  • Date format as mm/dd/yyyy instead of dd.mm.yyyy

    Hi Experts,
    I have a data field which get the data in yyymmdd format from the flat file and displays in my report as mm/dd/yyyy format.
    I checked in SU01D the format is dd.mm.yyyy and this is the format i want the date to be displayed in the report.
    Can you anyone tell me what could be the issue please.
    Thanks

    Hi,
    Please refer to
    Date Format in BEx Analyser
    How to get year format result on date format in Bex
    How to change Date format in Bex to DD/MM/YYYY
    hope this helps.
    Regards
    Raj

  • Date format MM/DD/YYYY

    Hi everybody,
    The date format in the Portal MM.DD.YYYY when it should be DD.MM.YYYY. We are entering in english and if we enter in Spanish the format is correct. But it shouldn't depend on lenguaje only...
    The User Profile in R/3 is DD.MM.YYYY but there are some transactions only in Portals but not in R/3, so we are not using the R/3 user.
    Is there a User Parameter in portals that can be set to force the date format?
    Thanks in advance

    There are 3 parameters to set in the file prtDefault.properties on the portal server, to force the date format.
    request.defaultcountry=gb
    request.mandatorylanguage=en
    request.mandatorycountry=gb
    The first param above exists already, you just have to change the value. The last 2 params need to be added.
    See also SAP Note 947081.
    -Laura

  • 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

  • No English language setting with European date formatting available

    The English language setting in my iPod bought in Finland forces date format to the American MM/DD/YYYY style. There is no English language setting that would result in the European DD.MM.YYYY or DD/MM/YYYY format.
    Either making date formatting separately configurable (as time formatting already is), or adding another English locale with European-style date formatting solves this problem.

    Yes I agree, date format should be language independant. This is very annoying!

  • Date format of footer in pdf

    How to change the date format of footer from dd/mm/yyyy to Monday 09 August 2010 when we down load the report in pdf file

    Hi,
    Revenue is a sample column. You can pull any measure column used in the report.
    And put this formula in a separate new column. And in the narrative view use this column number.For Ex- if the number of the column in the criteria is 15, then mention @15 in the narrative view.
    NOTE-Rows to display in narrative view should be set to 1.
    And in the formula-CEILING(CAST(COUNT("F1 Revenue"."1-01 Revenue (Sum All)") as DOUBLE)/ 25)
    25 refers to the number of row count to display. You can define the number according to your requirement.
    Regards,
    MuRam

  • Date format in BW report

    Hi All,
    When i execute a query in BW 3.5, the date format is displayed as dd.mm.yyyy instead of dd/mm/yyyy.
    for some values it is coming in dd/mm/yyyy and for some values it is displaying as dd.mm.yyyy in the same query.

    This is determined by your personal configuration setting for date format. On the SAP GUI Easy Access menus at the top of the screen, go to System --> User Profile --> Own Data, then choose the Defaults tab and change the setting for Date Format to "DD/MM/YYYY".
    There is probably a "global" setting for this in the IMG, as well.
    Hope this helps...
    Bob

  • Presentation Variable Date Format

    Hi all trying to format a presentation variable in a Narrative view , Is there a way that this can be done using javascript or html that i can paste into narrative view.
    i want something like "the date being used is @{indate} for month end"
    Also date format needs to be dd.mm.yyyy ... its currenty being displayed as yyyy/mm/dd .. I dont want to add the columns in my report and hide them as there seems to be a performance lag when i do that.
    Any ideas .. Java gurus out there.
    I have tried @{indate}[dd.mm.yyyy] .. but that dont work.
    Cheers
    Jenny
    Edited by: user5470064 on Aug 18, 2011 9:58 AM
    Edited by: user5470064 on Aug 18, 2011 9:59 AM

    Here you go...
    I tried in my machine and its working great..
    In Answers--> in Criteria TAB, In the column's fx use below formula...
    case when 1=1 then EVALUATE('TO_CHAR(%1,%2)' as varchar(20),date '@{pv_date}{1998-07-05}','dd.mm.yyyy') else "ORE Time Dim"."Mnth Name" end
    pv_date is the presentation variable and
    For "ORE Time Dim"."Mnth Name" use any varchar datatype column...
    Hope it helpful...
    Thanks
    Ashish Gupta

Maybe you are looking for

  • OBIEE Dashboard Error

    Odbc driver returned an error (SQLExecDirectW).   Error Details  Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OB

  • Can I pay for Logic Pro X using £139 worth of iTunes vouchers?

    I'm 15 years old looking to buy the software, but clearly I don't have any bank information to give... So I really don't want to spend £150 on iTunes vouchers to be told that I have "reached the limit" or "need to provide bank details" or something w

  • IPad mini safari search bar changed to grey and can no longer clear history

    What has happened?  The panel in safari where you type in web addresses use to be white with black type now it's all grey with white type.  It's awful.  Also I used to be able to clear history but can no longer do this.  Need this option as looking f

  • Probleme cu aplicatiile utilitare instalate.

    Buna ziua, Am cumparat de la Uniblue, Aplicatia Powersuite, a functionat o luna, iar  acum nu se mai deschide, este blocat.   Uniblue Technical Support i-mi cere lista error.log. - For Windows Vista / 7 - STEP 1: Click Start -> In the 'Search...' box

  • Security - using LDAP groups

    I want to protect my EJB using LDAP groups. WLS is recognizing WLS users but unable to recogniz groups. Here is my weblogic-ejb-jar.xml <security-role-assignment> <role-name>channel-role</role-name> <principal-name>system</principal-name> <principal-