on 10-22-2008 4:55 PM
Hi Guys,
I have to populate 2 target fileds with Current Date and Current Time of XI system when the mesage is processed through XI system.
There is a standard function for Current Date. But I dont see one for Current Time.
is there any way to find the Current Time of XI system. Should I write a user-Defined function, if so, can you help how to go about?
Thanks for your suggestions ASAP.
Regards, Namadev
you can achieve it with the currentdate function itself.
in the properties,
dd/MM/yyyy (or any other date format) will return the date
HHmmss returns time
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks guys.
I did write a simple User-defined function.
I imported java.text.*;
and wrote below code.
-
Date now = new Date();
DateFormat df = new SimpleDateFormat ("hh:mm:ss");
return df.format( now );
-
Thanks for your suggestions.
Namadev
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Namadev,
you can use "currentDate" and put for example a format "dd/MM/yyyy HH/mm/ss".
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.