Add declarative usage for date validator