45 $wordDay = date(Date::convertFormatToPhp(str_replace([
"MM",
"YYYY"],
"",\CSite::GetDateFormat(
"SHORT"))), mktime(0, 0, 0, date(
"m"), date(
"d"), date(
"Y")));
46 $wordDay = preg_replace(
"/[^0-9]/",
"", $wordDay);
47 $wordMonth = date(Date::convertFormatToPhp(str_replace([
"DD",
"YYYY"],
"", \CSite::GetDateFormat(
"SHORT"))), mktime(0, 0, 0, date(
"m"), date(
"d"), date(
"Y")));
48 $wordMonth = preg_replace(
"/[^0-9]/",
"", $wordMonth);
49 $template = str_replace(static::getPatternFor(static::TEMPLATE_WORD_DAY), $wordDay, $template);
50 $template = str_replace(static::getPatternFor(static::TEMPLATE_WORD_MONTH), $wordMonth, $template);
51 $template = str_replace(static::getPatternFor(static::TEMPLATE_WORD_YEAR), date(
'Y'), $template);