Skip to content

Commit 2c178da

Browse files
authored
Merge pull request #989 from navikt/modify-date-format
Modifies date-format
2 parents 6cb33b9 + 515a64f commit 2c178da

File tree

1 file changed

+4
-4
lines changed
  • packages/shared-domain/src/utils

1 file changed

+4
-4
lines changed

packages/shared-domain/src/utils/date.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import moment from 'moment';
22

33
const dateAndTimeFormat: Intl.DateTimeFormatOptions = {
4-
day: 'numeric',
4+
day: '2-digit',
55
month: '2-digit',
66
year: 'numeric',
7-
hour: 'numeric',
8-
minute: 'numeric',
7+
hour: '2-digit',
8+
minute: '2-digit',
99
};
1010

1111
const dateFormat: Intl.DateTimeFormatOptions = {
12-
day: 'numeric',
12+
day: '2-digit',
1313
month: '2-digit',
1414
year: 'numeric',
1515
};

0 commit comments

Comments
 (0)