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

Can you explain different types of joins?

932


How many types of subqueries are there in sql server?

991


How to retrieve error messages using mssql_get_last_message()?

1049


What is ms sql server reporting services?

1051


What is the current pricing model of SQL Azure?

104


how many layers of tcp/ip protocol combined of? : Sql server database administration

993


Write a SQL queries on Self Join and Inner Join.

1040


Difference between drill down and drill through report.

950


What is Replication?

1042


What is hierarchy, what are its types and difference between them? : sql server analysis services, ssas

1260


Explain what is lock escalation and what is its purpose?

927


What is a group function explain with an example?

984


how do you test proper tcp/ip configuration windows machine? : Sql server database administration

1059


How to create a user name in a database?

1050


Can we write a distributed query and get some data which is located on other server and oracle database?

1227