globalizejs / globalize

A JavaScript library for internationalization and localization that leverages the official Unicode CLDR JSON data
https://globalizejs.com
MIT License
4.8k stars 603 forks source link

dateParser customformat not working #882

Closed ihari07 closed 4 years ago

ihari07 commented 4 years ago

Hi Raf,

I am trying apply custom format, but it's not working in the globalize 1.x. Is there any alternative for this?

This seems to be straight forward pattern most of the people are using it in applications.

var euParser = Globalize( "eu" ).dateParser({ skeleton: "yyyy-MM-ddTHH:mm:ss.fff" });

euParser("2019-12-11T12:06:57.234");

//Output expected Wed Dec 11 2019 12:06:57 GMT+0530 (India Standard Time)

Could you please let us know the alternative for this?

ihari07 commented 4 years ago

Can someone reply this?

rxaviers commented 4 years ago

For questions, please use stack overflow. Details here https://github.com/globalizejs/globalize#contributing