private string _buildStartDate(IRRuleTokenContainer pTokenContainer) { var startToken = pTokenContainer.GetStart(); if (startToken == null) { return(null); } string result = _fragmentTranslator.GetTranslatedFragment(ETranslationFragment.DTSTART); result += $" {_dateFormatting.FormatFullDate(((ValueWrapper)startToken.GetValue()).getLocalDateTime())}"; return(result); }
/* ---- ENDINGS ---- */ private string _buildUntilDateEnding(IRRuleTokenContainer pTokenContainer) { var untilToken = pTokenContainer.GetUntil(); if (untilToken == null) { return(null); } string result = _fragmentTranslator.GetTranslatedFragment(ETranslationFragment.UNTIL); result += $" {_dateFormatting.FormatFullDate(((UntilToken.ValueWrapper)untilToken.GetValue()).getLocalDateTime())}"; return(result); }