on 01-12-2009 10:56 AM
Hi All,
I am facing an issue in SAP xMII BLS related to Date comaprison, i want to convert date into YYYYMMDD format from following format 2009-01-05T00:00:00 .
as i have already tried dateformat(datetime, fromformat, toformat) funcation its not working .
thanks in advance
Regards,
Rohit
Hi Rohit ,
Try this way.
datefromxmlformat(datetoxmlformat(Your variable,"yyyy-MM-dd"),"dd-MMM-yy")
Thanks
Muvva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Take note that 'hh' indicates the 12 hour clock and 'HH' indicates the 24 hour clock.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Rohit,
Don't forget to add "HH:mm:ss" to Pedro's line of code if you want to display the time exactly as your request. For future reference, you can search the MII Help for "Expression Editor Built-In Functions" for an explanation of all functions used in the Expression window of the Link Editor.
Regards,
Kevin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Rohit,
your source date is XMLFormat, so you need to use the following function for converting:
datefromxmlformat(yourVariable, "yyyyMMdd")
Regards
Pedro
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
5 | |
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.