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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Convert Java date to String

Is there an easy way to convert a Java date in milliseconds to a string date?
Labels (3)
3 Replies
Anonymous
Not applicable
Author

Hello
Yes, it is easy to convert a date in millisenconds to a string.
for example, on tJava:
java.util.Date date=new java.util.Date(long date);
String s=TalendDate.formatDate("yyyy-MM-dd HH:mm:ss", date);
System.out.println(s);

Best regards
shong
Anonymous
Not applicable
Author

Thanks!!
Anonymous
Not applicable
Author

Hi,
if you do not need any special format, this would be much faster:
yourDate.toString()

Bye
Volker