Skip to content

Commit

Permalink
Merge pull request rstacruz#1356 from JapMul/patch-1
Browse files Browse the repository at this point in the history
Update moment.md
  • Loading branch information
rstacruz authored Feb 13, 2020
2 parents 25ca535 + a0e23ed commit 0db5428
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions moment.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@ This parses the given date using the given format. Returns a moment object.
### Formatting

```js
m
.format()
.format('dddd')
.format('MMM Do YY') // → "Sep 2nd 07"
.fromNow() // → "31 minutes ago"
.calendar() // → "Last Friday at 9:32PM"
m.format() // "2013-03-01T00:00:00+01:00"
m.format('dddd') // "Friday"
m.format('MMM Do YY') // "Mar 1st 13"
m.fromNow() // "7 years ago"
m.calendar() // "03/01/2013"
```

### Add
Expand Down

0 comments on commit 0db5428

Please sign in to comment.