Updating scheduler tests because moment.js is loading inconsistently in tests.

Modifying this should have no baring on if the test passes or fails since we are looking for the same date only with different formats.

Also removing unnecessary code in datepicker