on 08-27-2008 2:21 PM
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
4 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.