4
packages/helpers/src/date.ts
Normal file
4
packages/helpers/src/date.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export function formatDatetime(dateString?: string | null): string | undefined {
|
||||
if (!dateString) return undefined;
|
||||
return `${dateString}T00:00:00Z`;
|
||||
}
|
||||
@@ -18,3 +18,4 @@ export { getAssetTypeVariant, getCriticityVariant } from "./assets";
|
||||
export { getAuditStateLabel, getAuditStateVariant, auditStates } from "./audits";
|
||||
export { promisifyMutation } from "./relay";
|
||||
export { fileType, fileSize } from "./file";
|
||||
export { formatDatetime } from "./date";
|
||||
|
||||
Reference in New Issue
Block a user