Fix to datetime_picker to format the value compliant to standard. [fixes #942]

This is for issue #942.