Jim Dettman
jimdettman at earthlink.net
Wed Apr 7 08:05:14 CDT 2004
John, In terms of the field value, you can't. Date/Time fields are doubles with the date/time stored as: Date.Time Any value to the left of the decimal represents a date and that includes 0, which hands you back the base date of 12/29/1899. If you want time alone, you need to store the value in a decimal field or use a scaled integer and use Time functions to translate it to a time as needed. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, April 07, 2004 1:03 AM To: AccessD Subject: [AccessD] How do I Having a bit of a problem tonight. Given #5/11/2000 3:20:00 PM# How do I get rid of the date portion and return just the time? I tried subtracting the clng(ThatDate) from the whole... sometimes worked but sometimes gave me bad time (but never any date portion) I tried dateadd("d",-clng(ThatDate),ThatDate)... That always gives me the correct time but 12/29/1899 as the date portion if the time is in the PM. I have a bunch of times that include the date and I need to strip the date off the time. John W. Colby www.ColbyConsulting.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com