Last active
March 17, 2021 00:33
-
-
Save jasonbahl/1e6afbcb2dbb7d4abb9600d0ba1027c2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| <script> | |
| export default { | |
| methods: { | |
| getDate(date) { | |
| const newDate = new Date(date); | |
| const newDateString = `${newDate.toLocaleString("default", { | |
| month: "long", | |
| })}, ${newDate.getDate()} ${newDate.getFullYear()}`; | |
| return newDateString; | |
| }, | |
| }, | |
| mounted() { | |
| console.log(this.$static); | |
| }, | |
| }; | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment