public override string ToString(bool shortVariant, Pullenti.Morph.MorphLang lang = null, int lev = 0) { if (IsRelative && !shortVariant) { StringBuilder res = new StringBuilder(); res.Append(this.ToString(true, lang, lev)); Pullenti.Ner.Date.Internal.DateRelHelper.AppendToString2(this, res); return(res.ToString()); } string fr = (DateFrom == null ? null : DateFrom._ToString(shortVariant, lang, lev, 1)); string to = (DateTo == null ? null : DateTo._ToString(shortVariant, lang, lev, 2)); if (fr != null && to != null) { return(string.Format("{0} {1}", fr, (DateTo.Century > 0 && DateTo.Year == 0 ? to : to.ToLower()))); } if (fr != null) { return(fr.ToString()); } if (to != null) { return(to); } return(string.Format("{0} ? по ?", (lang.IsUa ? 'з' : 'с'))); }