Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Current Date 2

Status
Not open for further replies.

mtechnocrat1

Programmer
Feb 28, 2004
3
US
Hi

How to use current system date,in datastage...waiting for reponse..

thanks in advance
 
Hi,

You would use the Date() function, and then some variation of the OConv() function to change the date from internal to external format. For example, say you want to assign the current date to a variable called StartDate, and format it in yyyy/mm/dd format, you would use:

StartDate = Oconv(Date(), "D4/YMD")

Hope this helps.
J
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top