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.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 how to add day to nvarchar?

Author  Topic 

bochup1
Starting Member

1 Post

Posted - 2010-05-17 : 00:24:48
i have a column call starting date i store it in dd/mm/yy format but in nvarchar(50).how do i add days to it from a column call days which is in int?

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2010-05-17 : 00:48:44
convert to datetime and then use dateadd()


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2010-05-17 : 11:10:27
1 Always use proper DATETIME datatype store dates
2 Let your front end application do the formation

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -