This JavaScript module can be used for getting date in desired formats