HomeForum
Welcome, Guest

Extract Date information from filename
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Extract Date information from filename

Extract Date information from filename 1 year, 9 months ago #918

  • mwarnre
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Hello Everyone:

I need to extract date information from a filename and place it into a variable. is it possible to do this? The filename is in the following format: strDDMMYYYY.csv

any help would be appreciated

thank you

mike

Re:Extract Date information from filename 1 year, 9 months ago #919

  • admin
  • OFFLINE
  • Moderator
  • Posts: 2183
  • Karma: 12
I guess by variable you mean a database field or File Column

First of all you need to get file name for the data reader
Reader parameter transformation function will do it for you
Than you need to get rid of '.csv' and 'str' parts of file name
Use EnsureNoPrefix and EnsurenoSuffix transformation functions
If you are loading the data into date field you should use Data format function

If you are a complete beginner watch out online tutorials first

Peter
  • Page:
  • 1
Time to create page: 0.15 seconds

Testimonials

My boss told me to keep looking for a more expensive application, assuming Visual Importer ETL couldn't be very good because the price was just too low.  After testing several imports I convinced him that Visual Importer did everything we want so there was no need to pay for a more expensive solution.

Ron Bradshaw,
IT Reporting Manager,
ConAgra Foods / Lamb Weston

User Login

You only need to log in or register to use our support forum



Our customers

BP

BBC

HSBC


Databases we work with

Go to top