trying to fix datetime select