Sql server gestire le settimane

select   cast(CONVERT(char(10), getdate(), 110) as datetime) [today]

,        datename(dw, getdate()) [day]

,        datepart(dw, getdate()-1) [day of week]

,        datepart(dw, getdate()-1)-1 [days since monday]

,        7-datepart(dw, getdate()-1) [days until sunday]

,        cast(CONVERT(char(10), (getdate()-(datepart(dw, getdate()-1)-1)), 110) as datetime) [monday]

,        cast(CONVERT(char(10), (getdate()+(7-datepart(dw, getdate()-1))), 110) as datetime) [sunday]

 

query utile quando si devono trattare le settimane...

Favicon generator


tool online per la creazione delle proprie icone

Link

[Js] ShifTZoom


effetto zoom sulle foto attraverso javascript
Link
«giugno»
domlunmarmergiovensab
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345