debian-mirror-gitlab/spec/frontend/__helpers__/datetime_helpers.js
2022-10-11 01:57:18 +05:30

6 lines
197 B
JavaScript

import dateFormat from '~/lib/dateformat';
/**
* Returns a date object corresponding to the given date string.
*/
export const dateFromString = (dateString) => new Date(dateFormat(dateString));