Fixed the date direction validation (see #16)