Link to home
Start Free TrialLog in
Avatar of lpenrod
lpenrod

asked on

Need 2 digit Millisecond

I know I asked this before, but I can't find the answer.

I have an SQL table that has a date field.  A piece of the SQL stored procedure that returns the date is:
CONVERT(varchar,duration,14) AS duration

It comes back as: hh:mm:ss:mss

I need it: hh:mm:ss:ms

I would swear it worked at one time...

I would prefer to fix it on the SQL side as this store procedure is used in many places.
ASKER CERTIFIED SOLUTION
Avatar of _agx_
_agx_
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lpenrod
lpenrod

ASKER

That simply truncates it, right?
Yes
Avatar of lpenrod

ASKER

It is funny how simple some solutions are...
Wish all solutions were like that ;-)