• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Date output with respect to 2 parameters inDate and weekday

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, One of the best suggestions ever...
reply
    Bookmark Topic Watch Topic
  • New Topic