VladShyrokyi
VladShyrokyi
Not really, need a standard according to https://www.w3.org/TR/NOTE-datetime. So that format can be reused with other libraries, possibly in other languages. For example, when the back end processes a csv...
Example to use: var date = "1994-11-05 13:15:30"; var dateFormat = DateParserUtils.parseFormat(date); assert dateFormat = "YYYY-MM-DD hh:mm:ss"; var date = "1994-11-05"; var dateFormat = DateParserUtils.parseFormat(date); assert dateFormat = "YYYY-MM-DD"; var...
You can declare precedence for formats. When somebody passes one string to the method, you check a list of formats by precedence. If need to find a format for the...
Hi, I have the same problem with Webstorm 2022.3.1.