Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Millseconds from Midnight Post Reply Post New Topic
Author Message
jacobtindall
Newbie
Newbie


Joined: 05 Feb 2009
Online Status: Offline
Posts: 3
Quote jacobtindall Replybullet Topic: Millseconds from Midnight
     Posted: 19 Feb 2009 at 8:52am
Hello,
I'm trying to convert a time stamp that is the number of milliseconds from midnight.

I was able to extract hours (and round down) minutes (and round down) and then used the CTime(HH,MM,SS) formula.  Was there an easier way?

Example:
1498801 = 4:09am
1822082 = 5:03am
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 20 Feb 2009 at 6:37am
Might have tried DateDiff using seconds, set a start time of 0 and then your value / 1000.
 
Just a thought, might not work, but it is what I would have tried.
 
Hope it helps
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum