cancel
Showing results for 
Search instead for 
Did you mean: 

Using runtime constant $TimeSent

Former Member
0 Kudos

$TimeSent puts a Z at the end of the timestamp of the system time.

1.What is the Z?

2. How do I get rid of the Z?

Thanks

Chirag

Accepted Solutions (1)

Accepted Solutions (1)

siddhesh_pathak4
Contributor
0 Kudos

Hello Chirag,

Z indicates that time is UTC (Universal Time Coordinated). "zone description" or indicates "Zulu Time"

I dont know where exactly you are using this but you can use "SimpleDateFormatter" a simple java function (Class) which can give you timestamp.

Former Member
0 Kudos

Hi thanks for the quick reply.

I am using $TimeSent in XSLT.

But i do use graphical later in the process. How would I write the function in there?

Thanks

Former Member
0 Kudos

Hi Chirag,

In the graphical mapping, you can use the currentDate standard function to get the system time.

Thanks,

Pooja Pandey

siddhesh_pathak4
Contributor
0 Kudos

Hi chirag,

In graphical mapping you can use the below UDF, just import,

"java.text.SimpleDateFormat"

String DATE_FORMAT_NOW = "yyyyMMddHHmmssSSS";

Calendar cal = Calendar.getInstance();

SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW);

return sdf.format(cal.getTime());

Answers (1)

Answers (1)

Former Member
0 Kudos

Chiraj,

As Pooja suggested you can use "currentDate" to get the system time and then make use of date standard functions if you need to transform the date structure.

Regards,

Pavan