This is what I have so far.
/// <summary>
/// Gets the date.
/// </summary>
/// <param name="date">The date: 05/07/2009</param>
/// <returns></returns>
private static DateTime GetDate(string date)
{
DateTime postDate = DateTime.Parse(date);
postDate.AddHours(DateTime.UtcNow.Hour);
postDate.AddMinutes(DateTime.UtcNow.Minute);
postDate.AddSeconds(DateTime.UtcNow.Second);
postDate.AddMilliseconds(DateTime.UtcNow.Millisecond);
return postDate;
}
Is there a better way to merge two dates? I'm looking for a more elegant solution.