0
0
mirror of https://github.com/fawazahmed0/exchange-api.git synced 2025-06-29 18:21:14 +00:00

Create semver-date.js

This commit is contained in:
Fawaz Ahmed 2024-03-06 23:18:37 +05:30
parent 7d09719ac5
commit 545e77370a

4
semver-date.js Normal file
View File

@ -0,0 +1,4 @@
const semver = require('semver')
const dateToday = new Date().toISOString().substring(0, 10)
const dateTodaySemVer = semver.clean(dateToday.replaceAll('-','.'), true)
console.log(dateTodaySemVer)