Changing date format from yyyy/mm/dd to mm/dd/yyyy

I use the following statment:
MAX(case when A.[NGT_KYC_QUES_PROPERTY]='ResolvedDate' then CAST(SUBSTRING([NGT_KYC_QUES_ANSWER],5,2) + '-' + SUBSTRING([NGT_KYC_QUES_ANSWER],7,2) + '-' + SUBSTRING([NGT_KYC_QUES_ANSWER],1,4) AS DATE) ELSE '' END)AS ResolvedDate,
to change date in text field (20140303T144253.253 GMT) to the following format:
2014/03/03
I would like to put it in the following format 03/03/2014 mm/dd/yyyy.
is it possible to do this all in one statement?

Actually you code does not convert that string to a string of "yyyy/mm/dd", it converts the value to a DATE. Your display must be changing it to that format.  Do not confuse the display format with the storage format.
PS.  You do not need to do the substrings.
CONVERT(varchar(10), CONVERT(date, LEFT([NGT_KYC_QUES_ANSWER],8), 112), 101)

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

  • 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

  • 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

  • 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

  • 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 to convert Date format from yyyy mm dd   to   dd mmm yyyy in ADF

    Hi,
    I have Date Format in Data Base as yyyy mm dd, but in the UI I want to display the format as dd mmm yyyy, which code I have to write to get the required format in JDev 11.1.2.3

    Hi,
    Use converter : <af:convertDateTime>
    See also : convertDateTime Demo
    -Arun

  • How to change data format from [IMAQ create -- output -- New Image ] to [Unflatten Pixmap VI -- input -- image data]

    hi gays,
    i have two program,
    the first one use  {IMAQ create} to get a image from USB webcam,
    the second one is picture data process which use [Unflatten Pixmap VI] to get a image data from a BMP file.
    Now I want to combine this two program, but data format don't match between  the output of {IMAQ create} and the input of [Unflatten Pixmap VI].
    My LabVIEW version is 2009
    What can i do??

    Do you have VDM? Did you try "Image to array"?

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

  • Change the date format from mm/dd to dd/mm

    Is there any way to change the date format? Currently, my today screen, calendar app, etc is set to display dates as mm/dd. I'd like to change it to the UK format (dd/mm) but I have not been able to find a single method that works. I've tried themes as some have recommended but once I install them, it's still showing mm/dd.
    I'm not unfamiliar with upgrading the OS and "slimming" it down, so even a method that requires me to remove US resource files will be okay.
    Frankly I'm disappointed RIM doesn't provide users with a "Regional Settings" type option like in Windows to change the date format.
    Any advice would be most appriciated.

    Yes you can change Date format from mm/dd to dd/mm its done automatically by " Display language " selected :
    Go to Menu : Setup - choose  - Language and Input Methods - look for " Display Language" there is a  small window with down arrow , click the down arrow and ,  change from " English"  to " English (UK)  "for DD / MM ,date format , or change to       " English (US) "  for MM / DD date format.
    Hope this help .

  • Change date format in reporting (query)

    I need to change date format from dd.mm.yyyy to dd/mm/yyyy in reporting (query)

    Hi Suresh,
    Go to transaction su01d in that enter your user.
    Now go to defaults and change the date format.
    Ya but this format will be user specific, so if you want everyone to see that format you have to change it for all.
    Regards
    Mansi

  • Function module to change date format

    hi
    is there any function module to change date format from 20080318 to 18.03.2008

    Hi,
    Use this FM  CONVERT_DATE_FORMAT            Convert date from yyyymmdd to ddmmyyyy format
    Regards,
    Jyothi CH.

  • In IOS 6 my date format was YYYY-MM-DD. When I switched to IOS 7, it changed to MM-DD-YYYY. How do you change it?

    In IOS 6 my date format was YYYY-MM-DD, which is ISO 8601 standard used in Canada.  When I switched to IOS 7, it changed to MM-DD-YYYY format which is very confusing as all my cameras etc use YYYY-MM-DD.  How do you change it, like one can in OSX?

    It appears previous versions of IOS would pick up your preferred date format from your OSX Mac. You can modify that to whatever you like.
    Now if you select Canadian or American in IOS 7 you get only MM-DD-YYYY.  This is wrong for Canada as the preferred date format here is YYYY-MM-DD, just check your birth or expiry dates on your Ontario Drivers License or OHIP Health Card.  Or the date field at the bottom left of any Government of Canada website.
    The trouble with using other Country codes is you tend to get their currency codes like € or £ and the terms like yesterday and today in their language.

  • I want to change the date format MM/YYYY to MM.YYYY in web report

    Hi to all experts,
       Here  the problem is: when i run a report for variable input when we select date as MM/YYYY its getting error . Here i need to change MM/YYYY to MM.YYYY. can u please tell me where exactly i need to change means in BEx or Web? if it is BEx where it is exactly pls tell m ethe step to step procedure.
    Its urgent!
    ( I will assign the points if its useful to me)
    Advance Thanks,
    Shah

    Hi Siggi,
            In su01 if we go  and change the date format from MM/YYYY to MM.YYYY  for a particular user ex:ss11 , if another user ex:bst55 try to run the web report he/she may get same error .If we make the change in su01-> default tab->under date format for a particular user , is it work for other users?
    Can u tell me step by step where exactly we need to go in AWB and where need to modify.
    I am looking for ur answer.
    Thanks in Advance
    Shah

  • 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

Maybe you are looking for

  • Does anyone know how to do a text search in the new Safari for iPad iOS 7?

    Does anyone know how to do a text search in the new Safari for iPad iOS 7?

  • After updating to iOS 8 iCloud broken

    I just updated my iPad mini with Retina Display from iOS 7 to iOS 8.2. Since doing so my iCloud access is not working.  It seems to be rejecting my password.   I have probably entered the password 40 times at this point.  It just keeps coming back an

  • Customizing FLVPlayback version 2.5 in Flex

    I am using the new FLVPlayback version 2.5 in a Flex Builder 3 Actionscript project. The application streams flv and mpv from a cdn. The FLVPlayback version 2.5 ships with an all inclusive compiled swf skins but this is not usable for custom players.

  • A sql problem

    Let me explain my question. I have a table ITEM(item_number varchar2(20), amount number) Item_number  amount A000001  15000 A0002  2000 A00003  -800 A00004  100 A00005  2500 A000006  -1000 A00007  60 I show a report like following: Total:18800 Detail

  • Cisco application networking manager license file - unable copy to server

    Hi all We tried all the options like ftp,tftp,scp,etc., to copy cisco application networking manager license file from my pc to its server which has CISCO ADE OS .But unable to copy .can anybody know correct method to copy ?? Thanks & Regards Sanjeev