Converting date format from 14/07/08 to 14-jul-08
hi all ,
i want to convert date format from 14/07/08 to 14-jul-08 . is there any function module for this ?.
kindly reply.
regards,
siya
Hi Siva,
Check the code below.
For getting date format in the form like 10.Dec.2008*
WHEN '01'.
CALL FUNCTION 'CONVERSION_EXIT_SDATE_OUTPUT'
EXPORTING
input = date2
IMPORTING
output = date_format.
IF sy-subrc EQ 0.
date_format1 = date_format.
ENDIF.
For getting date in the format like 10.December.2008*
WHEN '02'.
CALL FUNCTION 'CONVERSION_EXIT_SDATE_OUTPUT'
EXPORTING
input = date2
IMPORTING
output = date_format.
IF sy-subrc EQ 0.
Get Month Long text
SELECT SINGLE ltx
FROM t247 INTO ws_month
WHERE ktx EQ date_format+3(3)
AND spras EQ 'E'.
IF sy-subrc EQ 0.
CONCATENATE date_format0(2) ws_month date_format7(4) INTO date_format1 SEPARATED BY space.
ENDIF.
ENDIF.
Hope this helps,
Manish
Similar Messages
-
Function module to convert date format from yyyymmdd to mmddyyyy format
function module to convert date format from yyyymmdd to mmddyyyy format
Hi Rajitha,
Do like this
Data: Var1 type sy-datum,
var2(8) type c.
var1 = sy-datum.
Concatanate var1+4(2) var1+6(2) var1+0(4) into var2.
write var2.
Reward Points if this helps,
Satish -
Converting date format from in mapping
hi xi friends.
in my scenario i just want to convert date format from 12022007 which is file to 12.02.2007 which is in target bapi.
waiting for u.
bye.
regards.
seeta ram.Hi,
if I understood you correctly you want to transform from ddMMyyyy (your format in the external file) to yyyyMMdd (format of ABAP datatype DATS):
Then all you need to do is to use the standard function TransformDate (as already described above).
Enter in the field "Format of source Date": ddMMyyyy
Enter in the field "Target Format": yyyyMMdd
That's it.
Regards,
Helmut -
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 nothingHi 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. -
Convert date format from MONTH-YEAR to dd/mm/yyyy
Dear All
i want to get parameter in form of MONTH-YEAR AND WANT TO CONVERT DATE INTO 'THIS FORMAT dd/mm/yyyy' IT GIVES ME ERROR PLEASE GUIDE.
SELECT
TO_CHAR (PTP.END_DATE,'MONTH-YY') ,
to_date ( TO_CHAR (PTP.END_DATE ,'DD-MONTH-YYYY') ,'dd/mm/yyyy'),
--- i want to gent parameter in from of MONTH-YEAR AND WANT TO CONVERT DATE INTO 'THIS FORMAT dd/mm/yyyy' IT GIVES ME ERROR PLEASE GUIDE
to_date ( TO_CHAR (PTP.END_DATE ,'MONTH-YYYY') ,'dd/mm/yyyy'),
ADD_MONTHS((to_date ( TO_CHAR (PTP.END_DATE ,'MONTH-YYYY') ,'dd/mm/yyyy'),-1)
--- i want to gent parameter in from of MONTH-YEAR AND WANT TO CONVERT DATE INTO 'THIS FORMAT dd/mm/yyyy' IT GIVES ME ERROR PLEASE GUIDE
ptp.END_DATE PERRIODS_NAME
from per_time_periods ptp
Regards
Edited by: user10941925 on Nov 28, 2011 12:23 AMHello just check
SQL> select hiredate from emp;
HIREDATE
17-DEC-80
20-FEB-81
22-FEB-81
02-APR-81
28-SEP-81
01-MAY-81
09-JUN-81
09-DEC-82
17-NOV-81
08-SEP-81
12-JAN-83
03-DEC-81
03-DEC-81
23-JAN-82
14 rows selected.
SQL> select to_char(hiredate,'month-year') from emp;
TO_CHAR(HIREDATE,'MONTH-YEAR')
december -nineteen eighty
february -nineteen eighty-one
february -nineteen eighty-one
april -nineteen eighty-one
september-nineteen eighty-one
may -nineteen eighty-one
june -nineteen eighty-one
december -nineteen eighty-two
november -nineteen eighty-one
september-nineteen eighty-one
january -nineteen eighty-three
december -nineteen eighty-one
december -nineteen eighty-one
january -nineteen eighty-two
14 rows selected.
SQL> select to_char(hiredate,'dd/mm/yyyy') from emp;
TO_CHAR(HI
17/12/1980
20/02/1981
22/02/1981
02/04/1981
28/09/1981
01/05/1981
09/06/1981
09/12/1982
17/11/1981
08/09/1981
12/01/1983
03/12/1981
03/12/1981
23/01/1982
14 rows selected.
SQL> -
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.3Hi,
Use converter : <af:convertDateTime>
See also : convertDateTime Demo
-Arun -
Convert date format from 'dd/mon/yy' to 'mon/yy'
I know there's probably a load of questions already on this but I can't locate a simple straightforward explanation with examples on how to change the date 'DD/MON/YY' format to a month/year format 'MON/YY'.
Can anyone assist with a useful response, Thankswoof777 wrote:
Thanks both of you for the prompt responses.
I used the to_char(sysdate,'mmyy') from dual response, but also found the other useful.
Just another quick question, this field was in date format, why did I need to change it to CHAR?DATE datatype have NO format & are stored as BINARY values.
The only datatype that can be presented to screen, CRT, or data file are ASCII CHARACTERS!
Your Mileage May Vary below
19:28:46 SQL> select sysdate from dual;
SYSDATE
2012-08-19 19:28:53
19:28:53 SQL> -
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.Jhi
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 -
How to convert date format to ISO8601 in Oracle BPEL
Hi,
I need to convert date format from YYYY/MM/DD 00:00:00 to YYYY-MM-DDThh:mm:ss format in oracle BPEL. Can any of you help me out. Thanks in advance.Hi Anuj,
I have use the below mentioned code to convert the date format.
<db:P_X_DATE_FROM>
<xsl:value-of select='concat(substring(../VALUE,1.0,4.0),"-",substring(../VALUE,6.0,2.0),"-",substring(../VALUE,9.0,2.0),"T",substring(../VALUE,12.0,8.0))'/>
</db:P_X_DATE_FROM>
Thanks & Regards,
Jyotirmoy. -
Need help in converting date format
Hi,
Need help in converting date format from 'DD-MON-YYYY' to 'YYYY-MM-DD' in an .rtf template as I believe xml publisher supports the date format as 'YYYY-MM-DD' only.
Thanks,
Raj.I got the same problem, anyone know how to solve this problem? I allready found some date functions on http://blogs.oracle.com/xmlpublisher/2008/09/date_functions.html . I also tried <?xdoxslt:month_name(xdoxslt:get_month(xdofx:substr(NEED_BY_DATE, 4,3)), $_XDOLOCALE), 0, 'nl-NL')?>, but then it returns a namespace error (Caused by: oracle.xdo.parser.v2.XPathException: Namespace prefix 'xdofx' used but not declared.). Anyone know how to fix this?
Edited by: user11165753 on 7-dec-2009 23:50 -
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
PrasadHi 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 -
Is there any function module to convert date format?
Is there any function module to convert date format from mm/dd/yyyy to dd.mm.yyyy or sy-datum?
Hi,
wirte statement converts any date fomat in system date fromat
WRITE w_DateTO w_date_sys.
Regards,
Sriram -
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,
DhanushHi,
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 -
How to convert date format dd.mm.yy into yyyymmdd?
Hello experts,
how to convert date format dd.mm.yy into yyyymmdd?
Thanx
AxelHi
go through these previous threads on similar question
https://forums.sdn.sap.com/click.jspa?searchID=673529&messageID=1763194
Date Conversion in Flat File
converting the DATE(yyyymmdd) into MONTH(yyyymm) format
Date Format Conversion from MM.DD.YYYY to YYYYMMDD
gives clear idea
Reagrds
Kiran
Message was edited by:
ravi kiran naalla -
Change display Date format from 06.2011 to june 2011 in output of Query
Hi All,
Change display Date format from 06.2011 to june 2011 in output of Query Execution. i used time charcteristics 0calmonth in query, output display is coming 06.2011, i want to display output in june 2011 format, anyone tell me how to convert this Date format.Hi Nandish,
as tibollo said you just need to mark 0CALMONTH with text in RSD1.
Kindly note that you don't need to do data load for this object.
It will automatically derive by system.
Just change the Info object 0CALMONTH in RSD1, Go to Master Data/text column and check mark on with text.
Then activate it.
Regards,
Ashish
Maybe you are looking for
-
I have two email accounts on my iPad. How do I get a signature to show up on the second account?
-
It won't let me download attachments. An error message comes up.
I can't download any of the attachments. In the form they are there but when I click to download it gives me an error and I can't download it. This is a serious issue. This is the main reason I liked this software.
-
Separating business logic from presentation
Hi, I'm not sure if this is even the right forum for my question..but here it goes: I have a device that is throwing out data into some kind of a storage device/server. Now, I have an application that reads the data from that storage and charts it. L
-
PLEASE HELP! Does anyone have the software for the old 20" cinema display?
CAN ANYONE HELP?! Does anyone have the software for the old 20" cinema display model number M88932M/A? (brought early 2004- the version with no control button) I can't find my manual or software CD for my Apple Display anywhere - I can't remember if
-
Is there any way to apply "view options" (under the view menu) universally to all playlists in iTunes 10? As far as I can tell, it only applies to the selected playlist. Thanks-