Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
bhagyarekha
Creator II
Creator II

adding milliseconds to current date

hi ,
i want to add milliseconds in my tjava component.am able to get time in milli second.but am unable to add 
can any one  suggest me with the java code
String timeString2 =
    new SimpleDateFormat("HH:mm:ss0683p000009M9p6.pngSS").format(TalendDate.getCurrentDate()); 
above is the process am doing if it is wrong guide me on the same.
String time2=TalendDate.addDate(timeString,100,"SSS");
System.out.println(time2);
even though i give correct format am getting error

Labels (2)
1 Reply
Anonymous
Not applicable

Hi,
Java don't support for six but only for the millisecond sss.
If you want to show six, write .SSSSSS and the other part will be auto completed with  "000".
Best regards
Sabrina