func (t SQLiteDate) Value() (driver.Value, error) {
	if !t.Valid {
		return nil, nil
	}

	s := strings.TrimSpace(t.String)
	// handle empty string
	if s == "" {
		return "", nil
	}

	result, err := utils.ParseDateStringAsFormat(s, "2006-01-02")
	if err != nil {
		return nil, fmt.Errorf("converting sqlite date %q: %w", s, err)
	}
	return result, nil
}
// Value implements the driver Valuer interface.
Value implements the driver Valuer interface.
// Value implements the driver Valuer interface .
func (t SQLiteDate) Value() (driver.Value, error) {
	if !t.Valid {
		return nil, nil
	}
	s := strings.TrimSpace(t.String)
	if s == "" {
		return "", nil
	}
	result, err := utils.ParseDateStringAsFormat(s, "2006-01-02")
	if err != nil {
		return nil, fmt.Errorf("converting sqlite date %q: %w", s, err)
	}
	return result, nil
}
func ( t SQLiteDate ) Value ( ) ( driver . Value , error ) { if ! t . Valid { return nil , nil } s := strings . TrimSpace ( t . String ) if s == " " { return " " , nil } result , err := utils . ParseDateStringAsFormat ( s , " " ) if err != nil { return nil , fmt . Errorf ( " " , s , err ) } return result , nil }
Value implements the driver Valuer interface.
Value implements the driver Valuer interface .
// handle empty string