Moved dt_valid functions to a separate source file
Moved utility functions to separate source file
Revert the previous change, dt_days_in_month() and dt_days_in_quarter()
returns 0 if given out of range values.