import { DateString , UTCTimestamp } from "../types" ; export function getDateFromDateString ( dateString ) { return new Date ( dateString ) ; } export function getDateString ( date = new Date ( ) ) { return date . toISOString ( ) ; } export function getTimestamp ( date = new Date ( ) ) { return date . getTime ( ) ; }