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 please differentiate between a primary key and a unique key?

993


how you can get the list of largest tables in a database? : Sql server administration

1028


Why do you want to join software field as you have done your BE in Electronics?

2131


Explain iaas, paas and saas?

90


how do you implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql server database administration

1042


What is dknf in normalization form?

1035


What is the parse query button used for?

1015


What is the maximum size of sql server database?

988


What are extended events in sql server?

937


What is GUID in sql server?

1145


In which format does an image save in SQL Server database ?

981


What is the status of services on passive node for failover cluster in sql server? : sql server database administration

1238


What is a transactions?

1027


What are the disadvantages of primary key and foreign key in SQL?

1090


How to list all user names in a database?

1038