DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Time format of datetime property in a report text box

Solved!
Go to solution

I'm trying to print a datetime property of a TDM file on a report first pager, but I only get the raw output of seconds since 0 AD.

 

What do I need to add to this call in the text box to get a decent format?

@@Data.Root.Properties("datetime").Value@@

Thanks!

0 Kudos
Message 1 of 2
(2,341 Views)
Solution
Accepted by topic author nhallberg

If you drag and drop a time property to report you get the needed line.

 

@@Str(Data.Root.Properties("datetime").Value, timeformat)@@

where "timeformat" is the default setting. You can also use an string instead.

 

@@Str(Data.Root.Properties("datetime").Value, "#mm/dd/yyyy hh:nn:ss.ffff")@@

 

Message 2 of 2
(2,327 Views)