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 |
|
snufse
Constraint Violating Yak Guru
469 Posts |
Posted - 2009-07-09 : 08:14:28
|
| I have a stored procedure where I need to get the day of the year. Not sure about the syntax:declare @DateFrom datetimedeclare @JdeDateFrom intset @DateFrom = '2008-03-13'Need to add day of year into the @JdeDateFrom variable. |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2009-07-09 : 08:17:35
|
| declare @DateFrom datetimedeclare @JdeDateFrom intset @DateFrom = '2008-03-13'select @JdeDateFrom =datepart(dayofyear,@DateFrom)select @JdeDateFrom MadhivananFailing to plan is Planning to fail |
 |
|
|
snufse
Constraint Violating Yak Guru
469 Posts |
Posted - 2009-07-09 : 08:24:24
|
| Great, thank you. |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2009-07-09 : 08:25:23
|
quote: Originally posted by snufse Great, thank you.
You are welcome MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|