Skip to content

Instantly share code, notes, and snippets.

View AhamedR's full-sized avatar
🎯
Focusing

Ahamed AhamedR

🎯
Focusing
View GitHub Profile
@AhamedR
AhamedR / index.js
Created July 5, 2022 06:41
Convert number position of the month to String month
const monthToString = (monthInNumber) => {
const date = new Date(2020, parseInt(monthInNumber) - 1, 1)
return date.toLocaleString("en-us", { month: "short" })
}
monthToString(2)