We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13aaef9 commit 88081f6Copy full SHA for 88081f6
packages/core/src/utils.ts
@@ -0,0 +1,11 @@
1
+/**
2
+ * Utility functions for the core package
3
+ */
4
+
5
+export function formatDate(date: Date): string {
6
+ return date.toISOString().split('T')[0];
7
+}
8
9
+export function generateId(): string {
10
+ return Math.random().toString(36).substring(2, 15);
11
0 commit comments