dbTalk Databases Forums  

Date and DTS

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Date and DTS in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
eleftheriak@hotmail.com
 
Posts: n/a

Default Date and DTS - 02-08-2005 , 10:10 AM






Hello,

I would like to take the next week's date( for example next Monday)
from an ActiveX in a DTS package. Can I do that and how?

Thanks in Advance

Riri


Reply With Quote
  #2  
Old   
Sue Hoegemeier
 
Posts: n/a

Default Re: Date and DTS - 02-08-2005 , 10:35 AM






Next weeks date and do what exactly? I'm not real clear on
what you need to do but maybe your are looking for some of
the date functions. You can use DateAdd to add a week to an
existing date.

-Sue

On 8 Feb 2005 08:10:12 -0800, eleftheriak (AT) hotmail (DOT) com wrote:

Quote:
Hello,

I would like to take the next week's date( for example next Monday)
from an ActiveX in a DTS package. Can I do that and how?

Thanks in Advance

Riri


Reply With Quote
  #3  
Old   
Andy S.
 
Posts: n/a

Default Re: Date and DTS - 02-08-2005 , 11:59 AM



FormatDateTime(DateAdd("ww", 1, Now()),2)

should give you the date one week from now. You can pass that back and
forth from a global variable that you create in the package with:

DTSGlobalVariables("< variable name>").Value = FormatDateTime(DateAdd("ww",
1, Now()),2)

<eleftheriak (AT) hotmail (DOT) com> wrote

Quote:
Hello,

I would like to take the next week's date( for example next Monday)
from an ActiveX in a DTS package. Can I do that and how?

Thanks in Advance

Riri




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.