adding a datetimeChanged function for when the datetime loads asynchronously