Win a copy of Kubernetes in Action this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get day, month, and year seperate from date  RSS feed

 
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to get day, month and year from the Date object. How can I do this?
Thanks a lot!
 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use
Calendar.get(Calendar.DAY_OF_MONTH).
and so on
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!