Есть функция для работы с датой и временем, называется ParseDateTime.
Тут подробности
[URL=http://www.1c-bitrix.ru/help/index.html?page=source%2Fmain%2Fhelp%2Fru%2Fdeveloper%2Freference%2Ffunctions%2Fdate%2Fparsedatetime.php.html]http://www.1c-bitrix.ru/help/index.html?page=source%2Fmain%2Fhelp%2Fru%2Fdeveloper%2Freference%2Ffunctions%2Fdate%2Fparsedatetime.php.html[/URL]
Там ты найдешь исчерпывающую информацию по твоему вопросу
Тут подробности
[URL=http://www.1c-bitrix.ru/help/index.html?page=source%2Fmain%2Fhelp%2Fru%2Fdeveloper%2Freference%2Ffunctions%2Fdate%2Fparsedatetime.php.html]http://www.1c-bitrix.ru/help/index.html?page=source%2Fmain%2Fhelp%2Fru%2Fdeveloper%2Freference%2Ffunctions%2Fdate%2Fparsedatetime.php.html[/URL]
Там ты найдешь исчерпывающую информацию по твоему вопросу