public DateTime DateT() { if (DateTimePeriodFormatQualifier == "D8") { return(X12Parse.ToDate(DateTimePeriod)); } return(DateTime.MinValue); }
public static string GetDateStr(string qualifier, string date) { if (qualifier == "D8") //Segment.Get(2)=="D8") {//single date { DateTime dt = X12Parse.ToDate(date); //Segment.Get(3)); return(dt.ToShortDateString()); } else { string[] strArray = date.Split('-'); //Segment.Get(3).Split('-'); DateTime dt1 = X12Parse.ToDate(strArray[0]); DateTime dt2 = X12Parse.ToDate(strArray[1]); return(dt1.ToShortDateString() + "-" + dt2.ToShortDateString()); } }