Javascript DateFormat for different timezones

后端 未结 9 2042
小蘑菇
小蘑菇 2020-12-16 16:42

I\'m a Java developer and I\'m used to the SimpleDateFormat class that allows me to format any date to any format by settings a timezone.

Date date = new Dat         


        
9条回答
  •  有刺的猬
    2020-12-16 17:10

    The ISO Extended format for common date is YYYY-MM-DD, and for time is hh:mm:ss. Either format can be understood, unambiguously, worldwide.

    See also: http://jibbering.com/faq/#dates

提交回复
热议问题