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

Write a sql query to delete duplicate records from a table called table1

1011


Define Business Edition in SQL Azure?

100


What are sp_configure commands and set commands?

1001


What is the difference between sdf and mdf?

1280


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

1027


What is dknf in normalization form?

1032


How to generate random numbers with the rand() function in ms sql server?

1122


Can a database be shrunk to 0 bytes, if not, why?

1079


What are xml indexes?

924


What are the lambda triggers?

886


What is Command line parameters in PLSQL.?

1109


What are extended events in sql server?

936


What are the benefits of filtered indexes?

1021


How to drop an existing schema in ms sql server?

1077


What is the cartesian product of table?

992