Returning day and month.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to return only date and month in a field that now returns month, day
and year. Thanks folks.
 
To return day and month from a date field you can use
Format(DateField,"dd/mm")
Or
Format(DateField,"ddmm")

Or
Day(dateField) return the day
Month(DateField) return the month

Or
datepart("m",DateField) to return the month
datepart("d",DateField) to return the day
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top