added support to define format date