make the date formatter as per the advice