Skip to main content
1-Visitor
November 8, 2019
Solved

Getting the issue to Convert epoch to human-readable date and vice versa format

  • November 8, 2019
  • 2 replies
  • 1655 views

In thingworx foundation getting the issue to Convert epoch to human-readable date and vice versa format from timed value and how to convert data in CSV file.

Best answer by Constantine

Hello,

 

This post might help.

 

Once you get your Date object, you can convert it to string either on the server side (see dateFormat snippet) or on the client side just by displaying your DATETIME values in mashups (widgets like Grid, Value Display, Date/time picker and the like allow you to specify date/time format).

 

/ Constantine

2 replies

5-Regular Member
November 8, 2019

Could you elaborate more on how you wish to use the converted values?  are you trying to display dates in a mashup?

 

Thingworx has tools to convert CSV data to other formats, how do you wish to use the CSV data?  Where is the data coming from?  Device or user via upload?

 

 

18-Opal
November 10, 2019

Hello,

 

This post might help.

 

Once you get your Date object, you can convert it to string either on the server side (see dateFormat snippet) or on the client side just by displaying your DATETIME values in mashups (widgets like Grid, Value Display, Date/time picker and the like allow you to specify date/time format).

 

/ Constantine