diff options
Diffstat (limited to 'src/services/transforms.ts')
-rw-r--r-- | src/services/transforms.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/services/transforms.ts b/src/services/transforms.ts index 2eea46f..c12568e 100644 --- a/src/services/transforms.ts +++ b/src/services/transforms.ts @@ -7,6 +7,9 @@ const transformer = (hash: Record<string, string | JSX.Element>): Transformer => return value => _.get(hash, value, value); }; +export const transformDate = (date: string): string => { + return new Date(date).toLocaleDateString(); +}; export const transformOperation = transformer({ in: 'Приход', |