Code Snippet:<br><br>TDateTime DateAndTime;<br>TDate DateOnly;<br><br>DateAndTime = Now();<br>DateOnly = DateAndTime;<br><br>Question:<br><br>Why does DateOnly take the time value as well?<br>The only way I have found to get the date part only is to take the integer part. Using cast does not work.<br><br>If you are looking for a date range the addition of the time part can make a big difference!<br><br>Can anyone suggest a neater solution?<br><br>Regards<br><br>Roy Thomas<br><br><br>