I have a file name like 

> 
> Incoming\_file\_180420053826.csv
> 
> 
> 

where **180420** represents the date and **053826** represents time.  

I have used `echo $( cut -c 15-20 $filename )` to retrieve the date, but I'm unable to store that output date in a variable.