| Author |
Date output with respect to 2 parameters inDate and weekday
|
dinesh laxman kumar
Greenhorn
Joined: Jul 11, 2012
Posts: 16
|
|
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
Joined: Jan 03, 2004
Posts: 5895
|
|
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
Joined: Jul 11, 2012
Posts: 16
|
|
|
Thanks, One of the best suggestions ever...
|
 |
 |
|
|
subject: Date output with respect to 2 parameters inDate and weekday
|
|
|