Fix for https://github.com/phstc/jquery-dateFormat/issues/51

- Fixed issue #51
- Added test case
- updated the doc