Skip to content

Commit

Permalink
Update README.md for release v1.1.1
Browse files Browse the repository at this point in the history
Update README.md for release v1.1.1
  • Loading branch information
farhan7reza7 authored Jan 18, 2024
1 parent 2d538af commit f8d7632
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ Y = resultArray[0];
M = resultArray[1];
D = resultArray[2];
const customFormat = Y + 'years ' + M + 'months ' + D + 'days';
console.log(customFormat); // output: 1years 11months 30days
const customFormat = Y + 'year ' + M + 'months ' + D + 'days';
console.log(customFormat); // output: 1year 11months 30days
*/

// you can use this method for creating format of your choice
const customizedFormat = Formatter.customizeFormat('Ys', 'Ms', 'Ds', '-');
const customizedFormat = Formatter.customizeFormat('Y', 'Ms', 'Ds', '-');

console.log(customizedFormat); // Output: "1Ys-11Ms-30Ds"
console.log(customizedFormat); // Output: "1Y-11Ms-30Ds"
```

## API Documentation
Expand Down

0 comments on commit f8d7632

Please sign in to comment.