[resolved] Get Current Date with milliseconds

One Star

[resolved] Get Current Date with milliseconds

Hi,
How can I print the current date, with a precision of milliseconds (HH:mm:ss.SSS)?
Thanks
Seventeen Stars

Re: [resolved] Get Current Date with milliseconds

Your question actually contains the answer ;-)
If you use HH:mm:ss.SSS in the pattern in the schema it will print date columns in this way (e.g. in a tLogRow).
All Date objects keeps the values with milliseconds already. You do not have to do any additional settings.
One Star

Re: [resolved] Get Current Date with milliseconds

Thank you, I've used 'TalendDate.getDate("CCYY-MM-DD hh:mm:ss.SSS")'.