Re: Milliseconds to SQL Server DateTime
- From: Jouni Aro <jouni.aro@xxxxxxxxx>
- Date: Mon, 26 Nov 2007 18:01:50 +0200
Joe Griffin wrote:
Jouni Aro wrote:
If no, what do you suggest?
In one of my programs, I needed this level of resolution, so store the TDateTime and also put the milliseconds into a separate smallint field. It's a bit cumbersome, but works.
Thanks for that tip as well! However, I am not willing to go that path :)
I have now adopted the 'float' way and casting the values to datetime in select. I will need to instruct the users also to cast the data, if they need to add their own queries to the data. Anyway, it seems to be the only thing that can work simply and well enough in my application.
Thanks everyone for you suggestions.
.
- Follow-Ups:
- Re: Milliseconds to SQL Server DateTime
- From: Paul Scott
- Re: Milliseconds to SQL Server DateTime
- References:
- Milliseconds to SQL Server DateTime
- From: Jouni Aro
- Re: Milliseconds to SQL Server DateTime
- From: Joe Griffin
- Milliseconds to SQL Server DateTime
- Prev by Date: Re: Milliseconds to SQL Server DateTime
- Next by Date: Re: Adding ODBC driver programmatically
- Previous by thread: Re: Milliseconds to SQL Server DateTime
- Next by thread: Re: Milliseconds to SQL Server DateTime
- Index(es):
Relevant Pages
|
|