Hi Chipp, it is daylight saving that throws things off.
For the people in Europe it is the 31st of october that will not work with your original code. As Sarah (who knows all about dates) recomends: always calculate from 12 h noon for calculating dates. -------------- on mouseUp put "10/31/2010" into tDate convert tDate to dateItems put 12 into item 4 of tDate answer nextDayDate(tDate) end mouseUp function nextDayDate pDate convert pDate to seconds put 60*60*24 into tSecondsInDay add tSecondsInDay to pDate convert pDate to short date return pDate end nextDayDate ------------------ european version. Kind regards Bernd -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Date-bug-tp3170675p3170805.html Sent from the Revolution - User mailing list archive at Nabble.com. _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode