[Front-end] [#168] Added logic into utilities.js that detects the DateRange