Date in format RFC 3339

hi how i can put my date component with RFC 3339 format? i got a api rest that only accepts

invalid input: expected datetime, A timestamp string representation in RFC 3339 format (e.g. 2022-05-22T16:34:54.123Z)

what should i put in format? pd: if i dont select any date it uses defaults and works good, but after i select one date it doesnt works what im missing?

thank you

Try moment. moment().format() or moment([your date]).format(). The default format is RFC 3339.

1 Like