Simple code :
Method Day Extends d as Xojo.Core.Date, pDay as integer dim nwD as New Xojo.Core.Date(d.Year, d.Month, pDay, d.Hour, d.Minute, d.Second, d.Nanosecond, d.TimeZone) d = nwD
'd' has the new date, but when it returns into the calling method, i got the old date
dim myDate as Xojo.Core.date = Xojo.Core.Date.Now myDate.day(4)
// normaly change the day to 4 but still have the old date
any idea ?