fix custom date format not working
closes #455