Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show Fraction Second in Crystal 1

Status
Not open for further replies.

scottm87

Programmer
Apr 12, 2010
4
US
I have a client that has a need to show fractions of a second in Crystal Reports 2008. The field is a Date/Time field in SQL 2008 and I can see the fractions of a second within SQL, but, I cannot get to display in Crystal.

I have never had to do this within Crystal and am not sure if this is even possible, any ideas?

Thanks

Scott
 
If you just need to display it, you could use a SQL Expression - this is SQL Server syntax:

convert(varchar(30),datetimefield,121)

That would display correctly in CR, but as a text field.

If you need to perform calculations using milliseconds you could probably use the same technique, depending on the calculation needed:

convert(varchar(30),datetimefield1 - datetimefield2,121)

Regardless, the calculation would have to be done on the database side, then converted to text.




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top