fix custom date format not working
closes #380