fixed date issue by using jquery datepair