Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 23, 2012 11:36 PM by Dan Bracuk
Member
6 Points
39 Posts
Dec 22, 2012 10:37 AM|LINK
how to get system date...to every new(next ) row created in sql table....Time is not required only date is required
Star
12347 Points
1857 Posts
Dec 22, 2012 10:55 AM|LINK
You can set Default value = GetDate() in properties of column.
You can do it in SQL also, check following
http://stackoverflow.com/questions/4672103/default-getdate-for-insert-date
134 Points
58 Posts
Dec 22, 2012 10:56 AM|LINK
use getdate(); function
e.g.
insert into table (col1.col2,coldate) values(valu1,val2,getdate())
Plz,..plz.... Click "Mark A Answer" if helps for you
All-Star
31661 Points
6473 Posts
Dec 22, 2012 10:58 AM|LINK
Dec 22, 2012 11:00 AM|LINK
in what coloumn property shhould we place this getdate( ) function...
442 Points
292 Posts
Dec 22, 2012 11:01 AM|LINK
This is just Database Design
insert system date will from front end(C#/vb)
see the following link
http://forums.asp.net/t/982733.aspx/1
http://www.dotnetspider.com/forum/313523-How-insert-with-system-date.aspx
Dec 22, 2012 11:11 AM|LINK
Dec 22, 2012 11:13 AM|LINK
oned_gk can you come to gtalk
Dec 22, 2012 11:30 AM|LINK
this is what i did
http://i49.tinypic.com/3359r4n.png
Dec 22, 2012 11:38 AM|LINK
dn631
Member
6 Points
39 Posts
how to get system date
Dec 22, 2012 10:37 AM|LINK
how to get system date...to every new(next ) row created in sql table....Time is not required only date is required
urenjoy
Star
12347 Points
1857 Posts
Re: how to get system date
Dec 22, 2012 10:55 AM|LINK
You can set Default value = GetDate() in properties of column.
You can do it in SQL also, check following
http://stackoverflow.com/questions/4672103/default-getdate-for-insert-date
KiaranNafade
Member
134 Points
58 Posts
Re: how to get system date
Dec 22, 2012 10:56 AM|LINK
use getdate(); function
e.g.
insert into table (col1.col2,coldate) values(valu1,val2,getdate())
Plz,..plz.... Click "Mark A Answer" if helps for you
oned_gk
All-Star
31661 Points
6473 Posts
Re: how to get system date
Dec 22, 2012 10:58 AM|LINK
dn631
Member
6 Points
39 Posts
Re: how to get system date
Dec 22, 2012 11:00 AM|LINK
in what coloumn property shhould we place this getdate( ) function...
Anil Srivast...
Member
442 Points
292 Posts
Re: how to get system date
Dec 22, 2012 11:01 AM|LINK
This is just Database Design
insert system date will from front end(C#/vb)
see the following link
http://forums.asp.net/t/982733.aspx/1
http://www.dotnetspider.com/forum/313523-How-insert-with-system-date.aspx
oned_gk
All-Star
31661 Points
6473 Posts
Re: how to get system date
Dec 22, 2012 11:11 AM|LINK
dn631
Member
6 Points
39 Posts
Re: how to get system date
Dec 22, 2012 11:13 AM|LINK
oned_gk can you come to gtalk
dn631
Member
6 Points
39 Posts
Re: how to get system date
Dec 22, 2012 11:30 AM|LINK
http://i49.tinypic.com/3359r4n.png
oned_gk
All-Star
31661 Points
6473 Posts
Re: how to get system date
Dec 22, 2012 11:38 AM|LINK