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

Renaming File with DatetimeStamp

$
0
0

Hi All,

    I am using Visual Studio 2015. While moving the files from source to destination i want to rename the files with datetimestamp. I have csv files . I have added expression as

@[User::ArchiveFolderPath]+ @[User::Fname]+ 
(DT_STR,4,1252)DATEPART( "yyyy" , getdate() ) + RIGHT("0" + (DT_STR,4,1252)DATEPART( "mm" , getdate() ), 2) + RIGHT("0" + (DT_STR,4,1252)DATEPART( "dd" , getdate() ), 2) +".csv"

While applying Evaluate expression i am getting filenamewithdate.csv. While transferring i am getting filename as

Accounts.csv20181218. I need to get the filename as Accounts20181218.csv and Fname value is Accounts. Please let me know if i miss any thing.

Please guide me on this.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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