How to check an UTC formatted date with a regular expression?

前端 未结 5 1497
星月不相逢
星月不相逢 2021-01-22 12:07

As you know the format is like:

\"YYYY-MM-DDTHH:NN:SS.ZZZ+XX:XX\"  (i.e. \"2009-03-24T16:24:32.057+01:00\")

I have to do it in a ActionScript3

5条回答
  •  遇见更好的自我
    2021-01-22 12:45

    Have a look at this related question:

    Actionscript 3 - Fastest way to parse yyyy-mm-dd hh:mm:ss to a Date object?

    The accepted answer provides a way to parse an UTC time string to a Date object.

提交回复
热议问题