diff --git a/package-lock.json b/package-lock.json
index dde27c26..ae1e6c3e 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -16,6 +16,7 @@
"bip39": "^3.0.4",
"buffer": "^6.0.3",
"crypto-js": "^4.1.1",
+ "date-fns": "^2.28.0",
"lodash": "^4.17.21",
"naive-ui": "^2.28.0",
"pinia": "^2.0.11",
diff --git a/package.json b/package.json
index 508398d9..a2c93fe7 100644
--- a/package.json
+++ b/package.json
@@ -22,6 +22,7 @@
"bip39": "^3.0.4",
"buffer": "^6.0.3",
"crypto-js": "^4.1.1",
+ "date-fns": "^2.28.0",
"lodash": "^4.17.21",
"naive-ui": "^2.28.0",
"pinia": "^2.0.11",
diff --git a/src/plugins/naive.plugin.ts b/src/plugins/naive.plugin.ts
index 86a46174..214b747e 100644
--- a/src/plugins/naive.plugin.ts
+++ b/src/plugins/naive.plugin.ts
@@ -44,9 +44,11 @@ import {
NTag,
NInputGroup,
NInputGroupLabel,
+ NDivider,
} from 'naive-ui';
const components = [
+ NDivider,
NInputGroup,
NInputGroupLabel,
NTag,
diff --git a/src/tools/date-time-converter/date-time-converter.vue b/src/tools/date-time-converter/date-time-converter.vue
new file mode 100644
index 00000000..6c17b958
--- /dev/null
+++ b/src/tools/date-time-converter/date-time-converter.vue
@@ -0,0 +1,111 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ name }}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/tools/date-time-converter/index.ts b/src/tools/date-time-converter/index.ts
new file mode 100644
index 00000000..36a3c26a
--- /dev/null
+++ b/src/tools/date-time-converter/index.ts
@@ -0,0 +1,11 @@
+import { Calendar } from '@vicons/tabler';
+import type { ITool } from '../Tool';
+
+export const tool: ITool = {
+ name: 'Date-time converter',
+ path: '/date-converter',
+ description: 'Convert date and time into the various different formats',
+ keywords: ['date', 'time', 'converter', 'iso', 'utc', 'timezone', 'year', 'mounth', 'day', 'minute', 'seconde'],
+ component: () => import('./date-time-converter.vue'),
+ icon: Calendar,
+};
diff --git a/src/tools/index.ts b/src/tools/index.ts
index 5244f6cc..d2dde6ee 100644
--- a/src/tools/index.ts
+++ b/src/tools/index.ts
@@ -7,6 +7,7 @@ import { tool as uuidGenerator } from './uuid-generator';
import { tool as romanNumeralConverter } from './roman-numeral-converter';
import { tool as cypher } from './encryption';
import { tool as bip39 } from './bip39-generator';
+import { tool as dateTimeConverter } from './date-time-converter';
export const toolsByCategory: ToolCategory[] = [
{
@@ -17,7 +18,7 @@ export const toolsByCategory: ToolCategory[] = [
{
name: 'Converter',
icon: LockOpen,
- components: [romanNumeralConverter],
+ components: [dateTimeConverter, romanNumeralConverter],
},
];