Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: stonysmithYou can do this with a bit of code:
f=FileName.replace(".csv","") #remove csv suffix
s=f.split("_") # split the name into an array
d=s[len(s)-1] # get the last element of the array
emit FileDate = d.date("CCYYMMDD")