It is a little unclear what you mean, since the javascript Date constructor
itself takes the year first, but that is nothing to do with protobuf or
JSON, and nothing to do with the format.


If you mean the JSON, then:

In the JSON format, timestamp is always RFC 3339. In the binary format,
timestamp is just epoch integers (or two).

If you need different control over the JSON format, you might want a
general purpose JSON library, not s strongly opinionated tool like
protobuf. Alternatively: store a string.


On Sun, 19 Aug 2018, 03:01 Eduardo Demar, <eduardo.o...@gmail.com> wrote:

> Hi, I just need change default format of timestamp to dd/mm/yyyy
>
> I am using this code, on https://script.google.com:
>
>   input = {
>         "timestamp": new Date(DD/MM/YYYY)
>       };
>
> I really appreciate this help!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to protobuf+unsubscr...@googlegroups.com.
> To post to this group, send email to protobuf@googlegroups.com.
> Visit this group at https://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to