@dbcdk/react-components 0.0.27 → 0.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@
5
5
  * Examples:
6
6
  * - formatDate(new Date(), { userFriendlyLabel: true }) => "I dag"
7
7
  * - formatDate(new Date(), { userFriendlyLabel: true, showTime: true }) => "I dag, kl. 14:30"
8
- * - formatDate(date, { showTime: true }) => "10/03/2026 14:30"
8
+ * - formatDate(date, { showTime: true }) => "10.03.2026 14:30"
9
9
  *
10
10
  * @param date - The Date or date-parsable value to format
11
11
  * @param options.showTime - If true, append time "hh:mm" or "hh:mm:ss"
@@ -5,7 +5,7 @@
5
5
  * Examples:
6
6
  * - formatDate(new Date(), { userFriendlyLabel: true }) => "I dag"
7
7
  * - formatDate(new Date(), { userFriendlyLabel: true, showTime: true }) => "I dag, kl. 14:30"
8
- * - formatDate(date, { showTime: true }) => "10/03/2026 14:30"
8
+ * - formatDate(date, { showTime: true }) => "10.03.2026 14:30"
9
9
  *
10
10
  * @param date - The Date or date-parsable value to format
11
11
  * @param options.showTime - If true, append time "hh:mm" or "hh:mm:ss"
@@ -44,7 +44,7 @@ export function formatDate(date, options = {}) {
44
44
  const day = pad(d.getDate());
45
45
  const month = pad(d.getMonth() + 1);
46
46
  const year = d.getFullYear();
47
- const base = `${day}/${month}/${year}`;
47
+ const base = `${day}.${month}.${year}`;
48
48
  if (!showTime)
49
49
  return base;
50
50
  return `${base} ${formatTime()}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbcdk/react-components",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "description": "Reusable React components for DBC projects",
5
5
  "license": "ISC",
6
6
  "author": "",