/// <summary> /// Compares the date. /// </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 CompareDate(string left, string right) { DateCompare dti = new DateCompare(); left = dti.Parse(left); right = dti.Parse(right); return(left == right); }
/// <summary> /// Compares the date. /// </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 CompareDate(string left, string[] list) { DateCompare dti = new DateCompare(); left = dti.Parse(left); var right = dti.Parse(list); return(right.Contains(left)); }