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 |
lemondash
Posting Yak Master
159 Posts |
Posted - 2007-05-21 : 07:26:59
|
What to get todays date working in this script. Any idea where i'm going wrong ?selectH.IsoDate,HI.Country,HI.Center,H.ExchangeCode,HC.Holiday,H.HolidayCodefrom Holidays Hjoin HolidayInfo HIon HI.Code = H.ExchangeCodejoin HolidayCodes HCon H.HolidayCode = HC.Codewhere H.isodate = getdate()The date format in the h.isodate col is like this: '2005-06-24 00:00:00.000'Hope that helps |
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2007-05-21 : 07:30:18
|
[code]whereH.isodate = dateadd(day, datediff(day, 0, getdate()), 0)[/code] KH |
|
|
lemondash
Posting Yak Master
159 Posts |
Posted - 2007-05-21 : 07:35:16
|
Cheers !!!!!!!!!!!!!!!!! |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
|
|