1

Is there a way to get the current year in Reason? I found a library called bs-luxon, but I can't use it. I've installed it as the site says, but I don't know how to import it.

How can I use this library or other way to get the current year?

glennsl
  • 28,186
  • 12
  • 57
  • 75
Mateus Felipe
  • 1,071
  • 2
  • 19
  • 43

1 Answers1

3

You can use

Js.Date.getFullYear(Js.Date.make())
noziar
  • 1,017
  • 7
  • 11