cancel
Showing results for 
Search instead for 
Did you mean: 

Current Time is Graphical Mapping

Former Member
0 Kudos

Hi,

Is there any standard function in graphical mapping to get the system time. If not, please can somebody guide me to write a user defined function to get it.

Thanks,

Dehra

Accepted Solutions (1)

Accepted Solutions (1)

bhavesh_kantilal
Active Contributor
0 Kudos
String time =(new java.sql.Timestamp(System.currentTimeMillis())).toString();

Regards

Bhavesh

Answers (5)

Answers (5)

Former Member
0 Kudos

Thanks guys ! It solves my problem. I am just starting to learn java so UDF are a bit of struggle! But with the help of all the experts on this forum, I would pick it up.

regards,

Dehra

Former Member
0 Kudos

Hi Dehra,

U can easily write UDF using Java.util.DateTime class where standard method is availbale to give you time and date

Just call the method and convert into string if it comes as an object and pass it in return parameter

Regards,

**grant points if info is helpful

Shabarish_Nair
Active Contributor
0 Kudos

Date now1 = new Date();

SimpleDateFormat formatter = new SimpleDateFormat ("hhmmss");

String dateString1 = formatter.format(now1);

return dateString1;

This will help you to format the time as you need !!!!

Former Member
0 Kudos

Hi Debra,

There is one: go to the date group and select currentDate. In the properties of this function, you can select the time also (standard only the date is generated).

Kind regards

joris

prateek
Active Contributor
0 Kudos

CurrentDate function in Message Mapping

Regards,

Prateek