corrected date format to accept months only from 1-12