Convert dd-mm-YYYY to Quarter

  • Thread starter Thread starter kza40381
  • Start date Start date
K

kza40381

Can someone help me convert my date field i.e. "6/26/2003" to quarters of the
year using vb code? Thank you!
 
Format([YourDateField],"yyyy-q")

or
DatePart("q",[YourDateField]) as TheQuarter
and
Year([YourDateField} as TheYear

John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
 
Back
Top