added date formatter util method