Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

modification date into a variable ssis script task

$
0
0

Hi

i am using a script task to store a excel file modification date into a variable - However , when i use

Dts.Variables["User::FileLastModifiedDate"].Value= fileInfo.LastWriteTime;

I am returned in the variable

30/12/1899 00:00:00

it should be 06/11/2019 14:31:21

i kindly also need it to be formatted to 06/11/2019 00:00:00 (rounded time)

please help



Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>