#JS: create date objects with custom date formats