Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

179
Views
Parse locale string to date

I need a locale-based parser for string to Date. I have explored for solutions (both library or custom) but all I found are either assuming a fixed locale, or Date -> string which is fairly easier.

Example:

parse('1/2/2021', 'en-US') // must print Date object as "Sat Jan 02 2021 00:00:00 GMT+0530"
parse('1/2/2021', 'en-IN') // must print Date object as "Mon Feb 01 2021 00:00:00 GMT+0530"

Note that depending on the locale argument, 1 is parsed as a month (for US locale) or as day (for IN locale)

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!