added custom error exception
date formatter