Skip to content
Advertisement

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.

Advertisement

Answer

formatdddd 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>
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement