datetime form fix