Fixed issue #38

fixed timezone issue parsing date in 'YYYY-MM-DD'
Added validation to From and To Dates