Using Yoda-Time Library to Convert String to DateTime Format in Google Tasks API
===

I have a date/time string which needs to be sent to the Google Tasks API but I can't figure out how to convert a Yoda library DateTime object to a Java DateTime object. I'm using Android as the platform.

The string starts off as "2012/07/19 22:00:00" and is first converted to Iso format.

Here is my code:

		Task task = new Task();
		task.setTitle(title);
		task.setNotes(note);		
		DateTimeFormatter formatter =  DateTimeFormat.forPattern("yyyy/MM/dd HH:mm:ss");
		DateTime dt = formatter.parseDateTime(dateToIso("2012/07/19 22:00:00"));
        task.setDue(dt);    

    private String dateToIso(String date) {
		date = date.replace("/", "-");
		date = replaceCharAt(date, 10, 'T');
		date = date + ".000Z";
		return date;
	}

The error I am getting is:

> "Type mismatch: cannot convert from org.joda.time.DateTime to
> com.google.api.client.util.DateTime"

Please assist.