/// <summary> /// Compares the date time. /// </summary> /// <param name="left">The left.</param> /// <param name="right">The right.</param> /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns> private static bool CompareDateTime(string left, string right) { DateTimeCompare dti = new DateTimeCompare(); left = dti.Parse(left, 0); right = dti.Parse(right, 0); return(left == right); }
/// <summary> /// Compares the date time. /// </summary> /// <param name="left">The left.</param> /// <param name="list">The list.</param> /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns> private static bool CompareDateTime(string left, string[] list) { DateTimeCompare dti = new DateTimeCompare(); left = dti.Parse(left, 0); var right = dti.Parse(list); return(right.Contains(left)); }