def set_system_date(newdate, utc_offset=None):
 fmts = ['%Y-%m-%d', '%m-%d-%Y', '%m-%d-%y', '%m/%d/%Y', '%m/%d/%y', '%Y/%m/%d']
 dt_obj = _try_parse_datetime(newdate, fmts)
 if (dt_obj is None):
  raise SaltInvocationError('Invalid date format')
 return set_system_date_time(years=dt_obj.year, months=dt_obj.month, days=dt_obj.day, utc_offset=utc_offset)

def set_system_date ( newdate , utc_offset = None ) : fmts = [ '%Y-%m-%d' , '%m-%d-%Y' , '%m-%d-%y' , '%m/%d/%Y' , '%m/%d/%y' , '%Y/%m/%d' ] dt_obj = _try_parse_datetime ( newdate , fmts ) if ( dt_obj is None ) : raise SaltInvocationError ( 'Invalid date format' ) return set_system_date_time ( years = dt_obj . year , months = dt_obj . month , days = dt_obj . day , utc_offset = utc_offset )
set the windows system date .