private static void GetDateAndRestOfInputFromInput(string input, ref string description, ref DateTime endDate) { DateTimeParser dateTimeParser = new DateTimeParser(input); endDate = dateTimeParser.GetDateTimeResult(); if (endDate != GGItem.DEFAULT_ENDDATE) { description = dateTimeParser.GetRestOfInput(); } }
public static void TestParser(string input, string expected, string message) { DateTimeParser dtParser = new DateTimeParser(input); DateTime dateTime = dtParser.GetDateTimeResult(); Assert.AreEqual(expected, dateTime.ToString(), message); }
private bool NewInfoIsDate(string newInfoToChangeTo, out DateTime endDate) { DateTimeParser parser = new DateTimeParser(newInfoToChangeTo); endDate = parser.GetDateTimeResult(); if (endDate != GGItem.DEFAULT_ENDDATE) return true; else return false; }