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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RE: Variables 1

Status
Not open for further replies.

allyne

MIS
Feb 9, 2001
410
US
Hi Everyone,

I have a variable that uses an expression that looks like this Month(GetDate()). The value is 6. How can I get the value to look like 06.

Thanks for your help!
 
Try this
Code:
RIGHT("0" + (DT_STR,2,1252)Month(GetDate()), 2)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top