Last active
January 3, 2022 07:35
-
-
Save armedi/6080174a4e7e3e6fc2bf301297907fd4 to your computer and use it in GitHub Desktop.
Menggunakan library masa untuk memformat tanggal ke bahasa Indonesia
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { masa } from 'masa'; | |
masa(new Date('2020-08-17')).format('[hari] dddd, [tanggal] D MMMM YYYY'); | |
// hari Senin, tanggal 17 Agustus 2020 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks @willnode