To format date in your custom style