• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 210
  • Last Modified:

Extracting part of a date

I have a field called complete which is a date field, in the format of 02/12/2004 6.00PM, I want to extract the year from it.

How can I do this

Thanks

Poly
0
polynominal
Asked:
polynominal
1 Solution
 
TimCotteeCommented:
Hi polynominal,

Use

DatePart(year,MyDateField)

Tim Cottee
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now