Hi,

I did the same (I assumed that you want to add the 5:30h to the time
itself, if not just leave out the call.add(...) and append instead the
+"05:30" to sdate):

-------
 SimpleDateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd");
 SimpleDateFormat timeformat = new SimpleDateFormat("HH:mm:ss");
 Calendar cal = Calendar.getInstance();
 cal.add(Calendar.HOUR, 5);
 cal.add(Calendar.MINUTE, 30);
 String sdate = dateformat.format(cal.getTime()) + "T" +
timeformat.format(cal.getTime());
-------

Cheers, M

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" group.
To post to this group, send email to 
[email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to