Suoritettu

Parse two dates from a string (must be in Javascript)

I have strings like this:

[login to view URL]

[login to view URL]|12068-1905231335--31362-1-13558-1905231820

[login to view URL]

https://www.google.com/flights/#flt=LHW.HAK.2019-05-16*HAK.LHW.2019-05-23;c:USD;e:1;sd:1;t:f

[login to view URL]:2019-05-23/economy/1a:0c:0i?sort=price&order=asc

I need a JS function that extracts inbound (smaller date) and outbound (bigger date) and modifies the form values for inbound / outbound for me. The idea is to paste a string into the 'url' field and inbound/ outbound update automatically.

Parsing/ Update MUST be BEFORE form submit.

I'll provide the source for the form.

Taidot: Javascript, jQuery / Prototype, PHP

Näytä lisää: calculate number days dates using javascript, dates search dates using javascript, can find number days dates using javascript, javascript date range, javascript string to date, javascript compare dates, javascript epoch to date, javascript date.parse timezone, javascript convert date format, javascript date literal, javascript date, parse drivers license javascript, calculating number days dates using javascript, calculating dates using javascript, parse mysql database javascript, generate phone string javascript, find difference dates using javascript, parse xml file javascript array, parse post data javascript, days dates using javascript

Tietoa työnantajasta:
( 181 arvostelua ) Palo Alto, United States

Projektin tunnus: #19585582

Myönnetty käyttäjälle:

wow4433

Hey We can do this definitely in 1 day and deliver you with quality . Waiting for your reply. Thanks

$25 USD 1 päivässä
(1 arvostelu)
3.4

5 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön

kipdev13

Hi! I have experiences for 15+ years about IT programming. I have done your proposal quickly and then u will show good result. I want your detailed schedule. Thanks.

$30 USD 1 päivässä
(50 arvostelua)
6.1
bilal978

Hello, the url is going to be pasted in a textbox on a form, right? and you want to extract the inbound and outbound dates before submitting the form? is that right? Also is the date format going to be the same in all Lisää

$30 USD 1 päivässä
(21 arvostelua)
3.8
$25 USD 1 päivässä
(5 arvostelua)
2.5
uzairnaseer920

In my professional experience, I've been working as a Freelancer, a Young Researcher in the field of Image Processing and a Social Entrepreneur (still working the three of them separately), as a Computer Vision Algori Lisää

$10 USD 7 päivässä
(0 arvostelua)
0.0