Fixed formatting function ignoring formats after escaped text. Added _set function to streamline setting date values.