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...

hi, may i know what is the command to get abstract the
current month, current year and current day from a given
date.i want these three in a isolated way..seperatedly is
that any way in sql server 2000

Answer Posted / madhu

We can get date, month and year seperately from the
current date like

select DATEPART(d, getdate()) to get current date
select DATEPART(mm, getdate()) to get current month
select DATEPART(yy, getdate()) to get current year

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is used to replicate sessions between instances in coldfusion clusters?

1016


How do I install only the client tools of sql server 2000?

991


What information is maintained within the msdb database?

924


What function does a database engine serve in the sql server?

985


What is service broker?

955


what types of replication are supported in sql server? : Sql server database administration

954


What is difference between commit and rollback when used in transactions?

905


What are the difficulties faced in cube development? : sql server analysis services, ssas

997


can a table be moved to different filegroup? : Sql server administration

910


What are the advantages of having an index on the sql server?

872


How to apply cascading referential integrity in place of triggers?

968


What are logical database components? : SQL Server Architecture

959


Is resultset an interface?

903


What are the different ways you can create databases in sql server?

1042


How to create a user name in a database?

993