Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DatePart question
Message
From
02/06/2010 18:29:24
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
DatePart question
Miscellaneous
Thread ID:
01467122
Message ID:
01467122
Views:
111
Hi all,

It appears to me everyone went home early today.

I am needing to concat a couple pieces from the current date to a zipcode field to create a pass phrase for a special purpose. My zipcode field is a char(5) so I am wondering if DatePart(dd, GETDATE()) and DatePart(ms, GETDATE()) end up as string values.

What would be the best way to return a string value of those concatenated to a 5 char zipcode?
Thanks
Tim
Timothy Bryan
Next
Reply
Map
View

Click here to load this message in the networking platform