Fix formatString in XDate -- Related to #1596