Anupam Maurya
Anupam Maurya

Reputation: 2211

weekdays with date-Digit number in moment js

I am trying to find WeekdayName with dateDigit in moment js.

for example: Wednesday 13

I have found these => moment(date).format('dddd') But is returning me only Wednesday not digit number.

So any lead, for answer appreciates.

Upvotes: 1

Views: 55

Answers (1)

User863
User863

Reputation: 20039

format - dddd DD

dddd - Day Name

DD - Date

console.log(moment().format('dddd DD'))
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>

Upvotes: 2

Related Questions