Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Expiry date + format

 
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