datef is a Javascript date formatting library, both for browser and node.js