E
E
Evgeny Koryakin2019-05-08 20:09:55
Working with date/time
Evgeny Koryakin, 2019-05-08 20:09:55

How to execute this.setState depending on the day of the week?

How to execute the function Depending on the current day of the week?
this.setState({ activeTab6: 'all' })

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hzzzzl, 2019-05-08
@zettend

if (new Date().getDay() === DEN_NEDELI) {
  this.setState({ activeTab6: 'all' })
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question