static function GetDateFormatField($name="", $parent="", $no_year = false)
{
$timestamp = mktime(0,0,0,2,6,2010);
return array(
"PARENT" => $parent,
"NAME" => $name,
"TYPE" => "LIST",
"VALUES" => $no_year ?
array(
"d-m" => FormatDate("d-m", $timestamp),//"22-02",
"m-d" => FormatDate("m-d", $timestamp),//"02-22",
"d.m" => FormatDate("d.m", $timestamp),//"22.02",
"d.M" => FormatDate("d.M", $timestamp),//"22.Feb",
"m.d" => FormatDate("m.d", $timestamp),//"02.22",
"j M" => FormatDate("j M", $timestamp),//"22 Feb",
"M j" => FormatDate("M j", $timestamp),//"Feb 22",
"j F" => FormatDate("j F", $timestamp),//"22 February",
"f j" => FormatDate("f j", $timestamp),//"February 22"
CComponentUtil::GetDateFormatDefault($no_year) => GetMessage('COMP_PARAM_DATE_FORMAT_SITE')
):
array(
"d-m-Y" => FormatDate("d-m-Y", $timestamp),//"22-02-2007",
"m-d-Y" => FormatDate("m-d-Y", $timestamp),//"02-22-2007",
"Y-m-d" => FormatDate("Y-m-d", $timestamp),//"2007-02-22",
"d.m.Y" => FormatDate("d.m.Y", $timestamp),//"22.02.2007",
"d.M.Y" => FormatDate("d.M.Y", $timestamp),//"22.Feb.2007",
"m.d.Y" => FormatDate("m.d.Y", $timestamp),//"02.22.2007",
"j M Y" => FormatDate("j M Y", $timestamp),//"22 Feb 2007",
"M j, Y" => FormatDate("M j, Y", $timestamp),//"Feb 22, 2007",
"j F Y" => FormatDate("j F Y", $timestamp),//"22 February 2007",
"f j, Y" => FormatDate("f j, Y", $timestamp),//"February 22",
"SHORT" => GetMessage('COMP_PARAM_DATE_FORMAT_SITE')
),
"DEFAULT" => CComponentUtil::GetDateFormatDefault($no_year),
"ADDITIONAL_VALUES" => "Y",
);
}