fixed a few datetime bugs and added DateTime metadata built from submitted values