Date Format from YYYYMMDDhhmmss to dd-MMM-yy
Hi All,
I have a problem with the Date Format.
The out of the BAPI date format is like YYYYMMDDhhmmss and the output value is like 20,070,831,235,959. Now I want insert the date in to my Oracle database like dd-MM-yy.
Here is my xmlformat
datefromxmlformat(datetoxmlformat(Repeater_0.Output{/item/PERIOD_END},"yyyy-MM-dd
HH:mm:ss"),"dd-MMM-yy")
Can any one please correct this issue.
Thanks
Muvva
Hi Muvva,
If you want to convert a date from "yyyyMMddhhmmss' to 'dd-MM-yy' format, you may use the dateformat function. For example, the below will give you the result 30-08-08
dateformat("20080830121110","yyyyMMddhhmmss","dd-MM-yy")
In your case,
dateformat(Repeater_0.Output{/item/PERIOD_END},"yyyyMMddhhmmss","dd-MM-yy")
"dd-MMM-yy" will give you the result as "08-Aug-08", if you are looking for that format.
John
Edited by: John George on Aug 27, 2008 10:22 AM
Similar Messages
-
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 get Date Format from Local Object.
Hi All,
I am new to Web Channel.
I need to know Date format From date of locale.
suppose there is a date "01/25/2010" date in date field I want to get string "mm/dd/yyyy". Actually I have to pass date format to backend when I call RFC.
Is there any way to get Date format from "Locale" object. I should get date format for local object
I get local object from "UserSessionData" object but how to get Date format from it.
I am not looking for Date value. I am looking for current local date format ("mm/dd/yyyy or dd/mm/yyyy or mon/dd/yyyy) whatever local date format. I could not find example which show how to get date format from "Locale" object.
Any help will be appreciated with rewards.
Regards.
Web ChannelHi,
You can get it from "User" or "Shop" business object.
Try to get User or Shop Business Object as shown below.
BusinessObjectManager bom = (BusinessObjectManager) userSessionData.getBOM(BusinessObjectManager.ISACORE_BOM);
User user = bom.getUser();
char decimalNotation = user.getDecimalPointFormat().getGroupingSeparator();
If you are seeing "1,234.00" then above code will return "."
I hope this information help you to resolve your issue.
eCommerce Developer. -
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. -
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.
ThanksHi,
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 -
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 -
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 -
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 -
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 -
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 . -
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 -
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,
siyaHi 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 -
Hi Experts,
I want to pick the date formate from company code and print it in invoice.can any tell me where i can find the date formate in the company code and what is the T-code for that.
Thanks in Advance..actually, the date format is maintained to the country only not to the company code. So if u want to change the date format, u can change that in the country where ur company code exists
The Tr. code is OY01
Reward if useful. -
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 : &lt;af:convertDateTime&gt;
See also : convertDateTime Demo
-Arun -
Problem with date format from Oracle DB
Hi,
I am facing a problem with date fields from Oracle DB sources. The date format of the field in DB table is 'Date base type is DATE and DDIC type is DATS'.
I mapped the date fields to Date characters in BI. Now the data that comes to PSA is in weird format. It shows like -0.PR.09-A
I have changing the field settings in DataSource to internal and external and also i have tried mapping these date fields to text fields with out luck. All delivers the same format.
I have also tried using conversion routines like, CONVERSION_EXIT_IDATE_INPUT to change format. It also delivers me the same old result.
If anybody of you have any suggestions or if anybody have you experienced such probelms, Please share your experience with me.
Thanks in advance.
Regards
VaradaThanks for all your reply. I can only the solutions creating view in database. I want some solution to be done in BI. I appreciate if some of you have idea in it.
The issue again in detail
I am facing an issue with date fields from oracle data. The data that is sent from Oracle is in the format is -0.AR.04-M. I am able to convert this date in BI with conversion routine in BI into format 04-MAR-0.
The problem is, I am getting data of length 10 (Output format) in the format -0.AR.04-M where the month is not in numericals. Since it is in text it is taking one character spacing more.
I have tried in different ways to convert and increased the length in BI, the result is same. I am wondering if we can change the date format in database.
I am in puzzle with the this date format. I have checked other Oracle DB connections data for date fields in BI, they get data in the format 20.081.031 which will allow to convert this in BI. Only from the system i am trying creating a problem.
Regards
Varada
Maybe you are looking for
-
Is there any way to have OS 10.5.8 mail leave an attached photo in the same orientation as it is in Preview?
-
Unknown SID Error Message/Unable To Login to VM Manager
Hello, I have installed VM Server and VM Manager on the latest Virtual Box install for Windows 7. When I attempt to login into the VM Manager (ID: ovm , Default Password: Welcome1) - I get the error message: "... [APP: ovm_console] An incorrect usern
-
I can't access a specific site..HELP
Hello everyone, I'm having an issue with one particular website. It's a torrent site which i check almost daily and wasn't having any problems until this week. The site www.gay-torrents.net is giving me the issues. Now I can go to another persons hom
-
Hi, I have created an output type which needs to send the invoice through mail. I have written a custom program to do this. Every thing is working fine. But the problem is with the Mail Title. I mean subject of the mail. I have given -- Invoice &VBRK
-
Problems with all apps in iOS 5.1
I updated my software to iOS 5.1 but all the apps crash after 10 or 20 seconds from opened, including the default apps-all the apps has been purchase from Itunes store-What should i do? I already restore my Ipod 4G