dates to string for json builder