This snippet shows how to set the time portion of a datetime in C#.