Using the date from DatePicker in the url for sunrise/sunset webservice

view story

http://stackoverflow.com – Okayyyy, so I'm stuck and could do with some help :) In my code at the moment today's date is being read into the webservice url using the following snippet of code: Calendar c = Calendar.getInstance(); System.out.println("Current time => " + c.getTime()); SimpleDateFormat df = new SimpleDateFormat("dd/MM"); String formattedDate = df.format(c.getTime()); I want today's date to be displayed but I also want the user to be able to select a different date from the DatePicker and find the sunrise/sunset values for that particular date. I'm guessing this is simple and I'm just being a bit di (HowTos)