2024-02-17 17:39:31 +03:00

17 lines
336 B
TypeScript

import dayjs from 'dayjs';
import utc from 'dayjs/plugin/utc';
dayjs.extend(utc);
function _currentDate() {
return dayjs().utc(false).hour(5).minute(0).second(0).millisecond(0);
}
export function getCurrentISODate() {
return _currentDate().toISOString();
}
export function getCurrentDate() {
return _currentDate().toDate();
}