on 07-28-2008 10:08 PM
Hello, there!
Do you know how exactly how "today" and "datenow" built-in functions work?
I doesn't matter how I configure my date formats, it always seen to return on
'YYYY-MM-DDTHH:MI:SS' format, so I always have to format it again to fit on my date formats.
Is there a better way to work with those functions? Am I missing something?
Thanks in advance!
Hi,
In BLS 'today' always give the date in 'YYYY-MM-DDT00:00:00' format and datenow will give the date in 'YYYY-MM-DDTHH:MI:SS' format only.
If you want to change some other format, then you need to use 'datefromxmlformat( datetime, toformat )' in your BLS.
Thanks,
Manisha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The datenow standard format is 'YYYY-MM-DDTHH:MI:SS'.
I suggest the same as Christians post.
Good luck,
Ajay.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ajay - Please watch the accuracy of your posts, some of the DateFormat letters are quite different when using upper or lower case:
http://help.sap.com/saphelp_xmii115/helpdata/en/popups/DateFormatPopup.htm
"yyyy-MM-dd'T'HH:mm:ss" is actually the format of the XML datetime you'll see in BLS and the default XML output of MII.
You will not see the single quotes in the output of a date string in native format, but these indicate for the formatting that the capital letter T is merely text in between the two halves.
Regards,
Jeremy
Yea, it returns in xml format.
datefromxmlformat( datenow,"yyyy" )
seems the easiest way to format.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
13 | |
6 | |
3 | |
2 | |
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.