I'm using sys.xp_cmdshell dir <filename>
in order to get the last modified date of a file. For each file, it returns 7 rows. Among those 7 is a date and file name field. The data looks like this:
11/23/2015 12:14 PM 0 New Text Document - Copy (10) - Copy.txt
The date and the file name is separated by 17 spaces. Is there a way to get just the date? I'm finding splitting to be a difficult task, so I think it'd be easier to just get the date.