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

DateTime - Variable

$
0
0
RIGHT("0" +  (DT_WSTR,2)DATEPART("HH",GETDATE()), 2) + ":" +

RIGHT("0" +  (DT_WSTR,2)DATEPART("MM",GETDATE()), 2) + ":" +

RIGHT("0" +  (DT_WSTR,2)DATEPART("SS",GETDATE()), 2)  + ":" +

RIGHT("0" +  (DT_WSTR,3)DATEPART("Ms",GETDATE()), 3)  

Hi, 

When I write this exp for a string variable, I get 12:04:01:000 to 12:04:59:999 every time I click evaluate and after 12:04:59:999, it starts again with 12:04:01:000.

It's past 12:04 for a while now.

Why does it get stuck at 12:04?

If I do GETDATE(), I get the right time.

Thank you


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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