0

If I have a URL like this: http://localhost/my/service/endpoint?from=2015-01-28T05:55:00.000-06:00&to=2015-01-28T07:55:00.000-06:00

I want to be able to parse the from and to get parameters into JavaScript variables but the URL could potentially have additional parameters before or after what's shown above. What's the best way to parse these without using a third-party library?

I'm interested in being able to parse the full date for fromand to and nothing but these dates regardless of the number of GET params in the URL.

James A Mohler
  • 11,060
  • 15
  • 46
  • 72
conorgriffin
  • 4,282
  • 7
  • 51
  • 88

0 Answers0