I’m still fairly new to Javascript and after more research I’ve learned the the month is zero based in Javascript so my above date is actually referring to the Month of February which would make the return result of 5 make sense.
Latest posts made by fivemikes
-
RE: How to use Date Utils - getDayOfWeek
-
How to use Date Utils - getDayOfWeek
Hello
I’m trying to use the getDayOfWeek function. The following code returns a 5 for the first day of 2019. According to the calendar the first day of 2019 is a Tuesday. How do you equate 5 to Tuesday? I would expect it to return either a 3 or a 2 depending on whether a week starts with Sunday or Monday respectively.
import { date } from "quasar"; console.log("index is: " + date.getDayOfWeek(new Date(2019, 1, 1)));
thanks
-
RE: When I create a default project $store is missing
@s-molinari Thanks I will check that out.
-
When I create a default project $store is missing
Hello.
When I create a default project using Quasar CLI selecting the defaults in addition to Vuex, Axios and Prettier $store is undefined when I go into the App.vue. $router is there but not $store. What am I missing?
I’m running Quasar version 1.0.4. I ran Quasar update and it said everything was up to date. I’ve tried creating default projects using both Yarn and NPM and still get the same problem.Im fairly new to vue and Quasar but I have had Vue project with Vuex and Axios up and working using the vue cli with no problems.
I appreciate any help you can provide.
thanks