Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
db_sysadmin
Starting Member
27 Posts |
Posted - 2005-12-29 : 08:24:25
|
| Hey guys,Can't figure out which function is it, to get only the year of a date in this format mm/dd/yyyy.Thanks in advance |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2005-12-29 : 08:31:51
|
| Is this?select year(getdate()) as YearOnlyMadhivananFailing to plan is Planning to fail |
 |
|
|
db_sysadmin
Starting Member
27 Posts |
Posted - 2005-12-29 : 08:44:34
|
| Yes man, it worked fine. thanks! |
 |
|
|
shallu1_gupta
Constraint Violating Yak Guru
394 Posts |
Posted - 2005-12-29 : 22:53:23
|
| Or select datepart(yy,getdate()) |
 |
|
|
|
|
|