fix the type annotations for the datetime controls