We help IT Professionals succeed at work.
Get Started

Parse data from website

edrz01 asked
Last Modified: 2017-11-28
I am a PowerShell newbie.... I have been struggling on how to get a date value from a website.

I need to get a date from a certain file on a webpage. The webpage is in index format so looks lie this:

8/23/2014 12:00 AM     422508   file120.abc
8/23/2014 12:00 AM     440964   file121.abc
8/23/2014 12:00 AM     332636   file122.abc
11/26/2017 2:30 PM     3823     thefile.ini
11/25/2017 1:01 AM     88044    file309.abc

I need to find the line that contains 'thefile.ini' and get the date (11/26/2017) from it

When I look at the view source on the page I see

<br>11/26/2017  2:30 PM         3823 <A HREF="/folder/thefile.ini">thefile.ini</A>
Watch Question
Most Valuable Expert 2019
Most Valuable Expert 2018
This problem has been solved!
Unlock 1 Answer and 20 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE