-
-
Save seripap/9eb809268eb8026abd9f to your computer and use it in GitHub Desktop.
var month= ["January","February","March","April","May","June","July", | |
"August","September","October","November","December"]; | |
var month = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul","Aug", "Sep", "Oct", "Nov", "Dec"]; | |
//used with date.getMonth() |
Absolute Legend
You are a lifesaver!!!
let days = [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ];
just thought some might need this too
let monthFull = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
let month = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
let dayFull = [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ];
let day = [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ];
Thanks guys! I have looked for a ready array of months and I have got it! Good luck! :)
const initialDate = moment().startOf('year');
const months = Array.from({length: 12}, (e, i) => {
return moment(initialDate).add(i ,'months').format("MMM-YY");
})
thamksss!!
I needed this. thanks.
Nice tip I've saw in the wild. Instead of "console.log" use "console.table" to visualize a pretty nice table with all properties and indexes in your developer tools. Valid for arrays and objects.
Don't know how to export the table into an excel kind of file...any tips?
Ty 4 my 5 minutes of life boys!
So glad I didn't have to type this, thanks.
Good job!
you are a legend, man.
lol why am I still subbing to this
lol why am I still subbing to this
Likewise
Likewise
incase they add a new one
ty man i was so lazy
That god pays you!
Thanks, man. I was lazy to type this out.
Thanks, dude!
can't it be a
const
instead?
Yes it can be!
Thanks :)
Thanks, I was too lazy for this. :)
its been fun, but alas i must unsuscribe
Really useful man! Work smarter not harder!
ty for my 5 minutes
Thank you
thank bro
Thank you!
lets goooooo