def parse_only_date(raw, assume_utc=True, as_utc=True):
 f = (utcnow if assume_utc else now)
 default = f().replace(hour=0, minute=0, second=0, microsecond=0, day=15)
 return fix_only_date(parse_date(raw, default=default, assume_utc=assume_utc, as_utc=as_utc))

def parse_only_date ( raw , assume_utc = True , as_utc = True ) : f = ( utcnow if assume_utc else now ) default = f ( ) . replace ( hour = 0 , minute = 0 , second = 0 , microsecond = 0 , day = 15 ) return fix_only_date ( parse_date ( raw , default = default , assume_utc = assume_utc , as_utc = as_utc ) )
parse a date string that contains no time information in a manner that guarantees that the month and year are always correct in all timezones .