I am using a System.DateTime object to allow a user to select a date range. The user is only able to select a date (not time) using a third party calendar so I
System.DateTime
use this
DateTime YourNewDate = new DateTime(YourDate .Year, YourDate .Month, YourDate .Day, 23, 59, 59, 99);