date formatting enhancements

1. 'week' is added as a dateformat
2. invalid dates are formatted as empty strings (instead of NaN's)