Setting header date according Configuration.
Adding conditions to check enviroment configuration dateformat.
Merge pull request #1513 from ralpheav/master

Adding dateformat header acording Enviroment settings