This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

DAY of week  RSS feed

 
Pavels Hlopoks
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have problem.

1) I need get current date.
2) Need to know which day of week is now.
3) And reset counter at start of current day

Which is easyest way to do it?

Thanks
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at java.util.Calendar (and its GregorianCalendar implementation). All the methods you need are there.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!