up to datetime conversion