Fixing date format at page creation