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 |
avipenina
Starting Member
44 Posts |
Posted - 2011-05-23 : 03:42:30
|
Hi,how i can round the last digit to 0?select convert(varchar(5),getdate(),108)THX |
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2011-05-23 : 04:23:05
|
[code]select convert(varchar(4),getdate(),108) + '0'[/code] KH[spoiler]Time is always against us[/spoiler] |
 |
|
avipenina
Starting Member
44 Posts |
Posted - 2011-05-23 : 04:59:26
|
thanks. |
 |
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2011-05-23 : 08:38:01
|
SELECT DATEADD(MINUTE, DATEDIFF(MINUTE, 0, GETDATE()) / 10 * 10, 0) N 56°04'39.26"E 12°55'05.63" |
 |
|
|
|
|