Assuming that @[User::FilePath] is a variable that contains the following value Asia Marine Workbook - Oct 2017.xlsx
1. To get the Year value you can use the following expression
(DT_I4)LEFT(RIGHT(@[User::FilePath],9),4)
Result
2017
2. To get the month String value you can use the following
LEFT(RIGHT(@[User::FilePath],13),3)
Result
Oct
3. To get the month in Integer value
(DT_I4)(UPPER(LEFT(RIGHT(@[User::FilePath],13),3)) == "JAN" ? "01" :
UPPER(LEFT(RIGHT(@[User::FilePath],13),3)) == "FEB" ? "02" :
UPPER(LEFT(RIGHT(@[User::FilePath],13),3)) == "MAR" ? "03" :
UPPER(LEFT(RIGHT(@[User::FilePath],13),3)) == "APR" ? "04" :
UPPER(LEFT(RIGHT(@[User::FilePath],13),3)) == "MAY" ? "05" :
UPPER(LEFT(RIGHT(@[User::FilePath],13),3)) == "JUN" ? "06" :
UPPER(LEFT(RIGHT(@[User::FilePath],13),3)) == "JUL" ? "07" :
UPPER(LEFT(RIGHT(@[User::FilePath],13),3)) == "AUG" ? "08" :
UPPER(LEFT(RIGHT(@[User::FilePath],13),3)) == "SEP" ? "09" :
UPPER(LEFT(RIGHT(@[User::FilePath],13),3)) == "OCT" ? "10" :
UPPER(LEFT(RIGHT(@[User::FilePath],13),3)) == "NOV" ? "11" :
UPPER(LEFT(RIGHT(@[User::FilePath],13),3)) == "DEC"? "12":"")
Result
10
Or convert concatenate the date with a day value and convert it to (DT_DATE) then extract the month value
MONTH((DT_DATE)"1 " + LEFT(RIGHT(@[User::FilePath],13),8))
Result
10
Also if you need to return it as string with 2 digits (i.e 01)
RIGHT("0" + (DT_WSTR,10)MONTH((DT_DATE)"1 " + LEFT(RIGHT(@[User::FilePath],13),8)),2)
Result
10