from datetime import datevalue = control.GetValue()dt = date(value.GetYear(), value.GetMonth()+1, value.GetDay())
value = control.GetValue()print value.Format('%Y-%m-%d')