code: func (t *Time) StrToDate(sc *stmtctx.StatementContext, date, format string) bool {
  	ctx := make(map[string]int)
  	var tm MysqlTime
  	if !strToDate(&tm, date, format, ctx) {
  		t.Time = ZeroTime
  		t.Type = mysql.TypeDatetime
  		t.Fsp = 0
  		return false
  	}
  	if err := mysqlTimeFix(&tm, ctx); err != nil {
  		return false
  	}
  
  	t.Time = tm
  	t.Type = mysql.TypeDatetime
  	return t.check(sc) == nil
  }
docs: // StrToDate converts date string according to format.
  // See https://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html#function_date-format