Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

datepart always returns January ?

Status
Not open for further replies.
Jan 14, 2002
143
US
I'm not see why the following always returns January:

Format(DatePart("m",[mydatefield]),"mmmm")

It's supposed to take only the month from mydatefield, which is formatted as mm/dd/yyyy, and reformat it as "mmmm" so, for example, if 7/01/2002 was in mydatefield it would enter "July" where I have the formula. But it's only returning January...anybody know what I'm doing wrong?

Thanks



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top