create json from a directory
A zero dependency, simple function to return the parts of a date for formatting (or whatever you choose).