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 the difference between clustered and non-clustered indexes in ms sql server?

1052


Difference between Logical Page and Physical Page in SSRS.

491


What do you know about normalization and de- normalization?

970


What is set nocount on and what is set nocount off?

994


What is built-in function?

1058


How to stop log file growing too big?

1060


What is explicit cursors?

1123


Can primary key be a foreign key?

1109


How to connect php with different port numbers?

1147


What is difference between joins and subqueries?

1171


How many types of functions are there in sql server?

985


How to delete duplicate records based on single column from a table?

1105


Do you know what is similarity and difference between truncate and delete in sql?

1065


What is the difference between the export /import functions in sql studio and standalone sql manager? : sql server management studio

1186


What is partition index in sql server?

1171