Added date format function [tracker 2031]