• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Date output with respect to 2 parameters inDate and weekday

 
dinesh laxman kumar
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a scenario wherein I need to get the Date based on two input parameters date and weekday

For example

I have inputs Date(MM/dd/yyyy): 10/30/2012 and weekday: saturday

The output should be - "11/03/2012"

The output is that because its saturday... I tried exploring Calendar API, no clear cut thought yet...

Help please

 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Forget about Calendar and anything else Java-specific or even programming specific for now. You need to write down in English (or whatever your native language is) precisely what steps you would use to go about doing this "manually." Once you've got that--and the steps are very simple and very precise--then you can work on figuring out how to translate it to Java.

When you get stuck, TellTheDetails(←click) about your efforts and where you're having problems.
 
dinesh laxman kumar
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, One of the best suggestions ever...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic