import { convertDateFromBackendFormat } from '@utils/format-date';
import { DateFormat } from '@constants/utils/format-date';

export default {
  date(value: string) {
    return convertDateFromBackendFormat(value, DateFormat.date);
  },
  time(value: string) {
    return convertDateFromBackendFormat(value, DateFormat.time);
  },
  datetime(value: string) {
    return convertDateFromBackendFormat(value);
  },
};
