I don't see where is the problem... If you have been able to find and run the
sample, you should be able to replace the lines below by some piece of code to
format the date as you wish.
If you lack some Javascript knowledge, there are excellent online tutorials
which may help you to start with Javascript development.
Anyway, since startJSDate is a Javascript Date objet, you can use any of its
methods, such as getMonth() and getDate() to format the datetime ;
please note that January is encoded as 0 by getMonth(), it will prove useful
when indexing the months array.
This being said, replace :
var dateString = (startJSDate.getMonth() + 1) + "/" + startJSDate.getDate();
if (!startDateTime.isDateOnly()) {
dateString += " " + startJSDate.getHours() + ":" +
padNumber(startJSDate.getMinutes());
}
with :
var months = ["January", "February", "March", "April", "May", "June", "July",
"August", "September", "October", "November", "December"];
var dateString = months[startJSDate.getMonth()] + " " + startJSDate.getDate();
Since this question has nothing to do with Google Calendar API issues (but
rather javascript development tips), please post any further questions to some
general Javascript development forum.
--
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://code.google.com/apis/calendar/community/forum.html