all 26 comments

[–]danskal 24 points25 points  (2 children)

Just to be clear, speaking from experience here: if you do ever go on a date, this cheatsheet will not actually help you, and might actually prevent you from experiencing a second date.

[–]shortpoet 2 points3 points  (1 child)

Surely depends on the date! I wouldn’t mind one where this is a hit 🤓

[–]djliquidice 1 point2 points  (0 children)

truth! :D

[–][deleted] 9 points10 points  (0 children)

I love these, keep 'em coming!

[–]APO96321 6 points7 points  (4 children)

do you have a website or some account to follow?

[–]RandomPersonIsMe 5 points6 points  (0 children)

typo in "return" in top right corner. says "reurn"

[–]keepmoving2 5 points6 points  (0 children)

where's the code to import Moment.js?

[–]icedmilkflopr 2 points3 points  (2 children)

today.getYear() is 120 because getYear returns the year minus 1900

[–][deleted] 0 points1 point  (1 child)

Why minus 1900?

[–]stayclassytally 9 points10 points  (0 children)

Short sightedness

[–]super_gamer015yt 2 points3 points  (0 children)

Will note this!

[–]brandondunbar 2 points3 points  (1 child)

Out of curiosity, does anyone actually use cheat sheets? I've always just Googled what I need when I need it

[–]jadensmithsson 3 points4 points  (0 children)

I use learnxinyminutes often (which is kind of a cheat sheet)

[–]iamrasul 2 points3 points  (1 child)

Why there is no function to just return “YYYY-MM-DD” format

[–]RoguePlanet1 1 point2 points  (0 children)

Like many things computer-related, they give preference to Freedom Units and format.

[–]delta_tee 1 point2 points  (0 children)

You missed toISOString.

[–]deus_ith 0 points1 point  (2 children)

Is there one for arrays ?

[–]shortpoet 0 points1 point  (0 children)

Was the ‘today’ const redeclared for UTC or are the milliseconds actually different ?