def set_value(self, value): value = WinDateTime.Parse(value) self.native.Value = value
def set_max_time(self, value): if value is None: value = str(self.native.MaxDateTime) value = WinDateTime.Parse(value) if self.native.Value > value: self.native.Value = value
def set_max_date(self, value): value = WinDateTime.Parse(value) self.native.MaxDate = value