Fixes date format. In JavaScript months use zer0-based numbering