added date processing into the example