Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 hash nonclustered index

970


last function used in MS Access to convert sql what function will use in sql

2077


What are the various Operating system files that every SQL server 2005 database has and what is the purpose.

1065


When we should use and scope of @@identity?

999


How to create a local temporary stored procedure?

998


Can a cursor be updated? If yes, how you can protect which columns are updated?

1112


How to store and query spatial data?

997


Explain the benefits of user-defined functions?

1064


What is cross join in sql server joins?

1146


What number sorts of privileges are accessible in sql?

1037


New concepts of sql server 2005 use in your project.

2363


What is 5nf in normalization form?

998


Is it possible to import data directly from t-sql commands without using sql server integration services? If so, what are the commands?

1401


Explain “not null constraint” in sql server?

1039


What is the difference between ddl,dml and dcl commands?

1114