Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Expiry date + format  RSS feed

 
Imran Bhutta
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i just wanted to konw how you would format the Expiry Date in the Credit Card class to give you year/month/day?

thanks
 
Mark Patrick
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at class java.text.SimpleDateFormat.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!