sql server has its default date format in da form "yy-mm-dd"
its possible to convert da current date format of sql
server to desired format. Now my question is dat how to get
da previous and comin days date in my desired format??

Answer Posted / rohit agarwal

hello mr. ritesh u got write queary but there should be one
modification in place of strdate it will be getdate()
funtion like this:

select datedd(dd,-2,getdate())

from this queary u will get date before 2 days due to -2
ok
so swapan try this query u will get ur answer

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is transaction server implicit?

529


Indexes are updated automatically is the full-text index also updated automatically?

619


Explain the properties of subqueries in sql server?

539


What are binary string data types in ms sql server?

652


List some case manipulation functions in sql?

591






What are the restrictions that views have to follow?

555


Why we need to use secondry database file? though, we can do same work using primary database file also.

5761


Why do you need a sql server?

502


whats the maximum size of view state??

1718


How to create a local temporary stored procedure?

498


How to connect ms access to sql servers through odbc?

543


How to maintain a fill factor in existing indexes?

528


what is an index? : Sql server database administration

518


What are the purposes and advantages stored procedure?

495


How do use Having,Group by,Group function in SQL?

1352