how to enter manual time stamp in get date ()
Posted
by Arunachalam
on Stack Overflow
See other posts from Stack Overflow
or by Arunachalam
Published on 2010-06-07T17:40:44Z
Indexed on
2010/06/07
17:52 UTC
Read the original article
Hit count: 262
sql
|sql-server
how to enter manual time stamp in get date () ?
select conver(varchar(10),getdate(),120)
returns 2010-06-07
now i want to enter my own time stamp in this like 2010-06-07 10.00.00.000
i m using this in
select * from sample table where time_stamp ='2010-06-07 10.00.00.000'
since i m trying to automate this query i need the current date but i need different time stamp can it be done .
© Stack Overflow or respective owner