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

working with dates

$
0
0

Hello,

I need to rename the file depending on the below given scenario.

If the today's  date falls between last months 22nd to current month 21st, I need to rename it with current month.

for example- If date falls between 06/22/2012 to 07/21/2012. So in this scenario the FILE name will have 07/12 appended.

As, I was trying to use GETDATE() I am facing some problem using BETWEEN.

Please suggest approach for same.

Thank You,

madhur_ms


madhur_ms


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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