It looks like D5 does not have DateOf, but the Trunc function works fine (with a comment of why). Thanks for Jolyon for the description of the oddities of this control - it looks like he has been bitten by this oddity and knows it well!
John DateOf() is nothing more than a wrapper for Trunc(TheDate) but I like to use it becuase then you know what its doing :-) BTW TimeOf(TheDate) returns only the time portion of a date/time and is just a wrapper for Frac(TheDate). Once agai I use this so I know what the code is doing. Jeremy
_______________________________________________ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: unsubscribe