Thank you, Austin, problem solved. Wish http://www.w3schools.com/js/js_obj_date.asp also mentioned it...
Best regards, Ádám On Sat, Apr 12, 2008 at 3:19 AM, Austin (Google) <[EMAIL PROTECTED]> wrote: > > Hi, > > This is because in IE, getYear() of the Date object actually returns a > 4-digit year string while in Firefox it returns the # of years since > 1900. I recommend calling dt.getFullYear(), which in both browser > would always return 4-digit year string. > > Hope it helps, > Austin > > On Fri, Apr 11, 2008 at 2:21 AM, adszhu <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > This code works in FireFox, fails in IE6 and 7: > > ... > > <script src="http://www.google.com/jsapi?key=...> > > var dt=new Date(); > > dt.setDate(dt.getDate()-30); > > var year = dt.getYear() + 1900; > > var month = dt.getMonth() + 1; > > if (month < 10) {month = "0" + month}; > > var day = dt.getDate(); > > if (day < 10) {day = "0" + day}; > > var full = year + "-" + (month) + "-" + day; > > ... > > var query = new > > google.gdata.calendar.CalendarEventQuery(eventsFeedURL); > > query.setMinimumStartTime(full); > > > > Any workaround? > > > > Ádám > > > > > > > > > -- Ádám http://adszhu.googlepages.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
