fix dateformats

use CL_DATEFORMAT in more places