cancel
Showing results for 
Search instead for 
Did you mean: 

currentDateTime upto millisecs in graphical mapping...

Former Member
0 Kudos

How do we capture currentDateTime upto milliseconds in graphical mapping???

Thanks in advance!!!

Accepted Solutions (1)

Accepted Solutions (1)

Shabarish_Nair
Active Contributor
0 Kudos

use the standard date function and along with the date also provide the time pattern as HHMMSS

easily done by the standard date function.. no need for a UDF

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks guys...

Former Member
0 Kudos

As said above, use standard date function and use "yyyy-MM-dd HH:mm:ss.SSS" format. Date format you can set as per your need.

Regards,

Sarvesh

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi,

Its very simple if you write one simple UDF and use DATE Function in that,add this method to format the date with seconds

import java.text.DateFormat;

import java.text.SimpleDateFormat;

import java.text.ParseException;

import java.util.Date;

Date now = new Date();

SimpleDateFormat format = new SimpleDateFormat("YYYY MM dd HH:mm:ss ");

return format;

Regards,

Raj