//MarshalJSON returns time string with RFC3339 format
MarshalJSON returns time string with RFC3339 format
// MarshalJSON returns time string with RFC3339 format
func (t *Date) MarshalJSON() ([]byte, error) {
	if t == nil {
		return []byte("\"\""), nil
	}
	if t.IsZero() {
		return []byte("\"\""), nil
	}
	return []byte(strconv.Quote(t.String())), nil
}
func ( t * Date ) MarshalJSON ( ) ( [ ] byte , error ) { if t == nil { return [ ] byte ( " \" \" " ) , nil } if t . IsZero ( ) { return [ ] byte ( " \" \" " ) , nil } return [ ] byte ( strconv . Quote ( t . String ( ) ) ) , nil }
MarshalJSON returns time string with RFC3339 format
MarshalJSON returns time string with RFC3339 format