Link to home
Start Free TrialLog in
Avatar of leezac
leezac

asked on

Date field to mm/yyyy

I need a query or input mask to change the date field in the table in the attached database to show mm/yyyy only.  I tried an update query but did not update.

Thanks in advance!!
ASKER CERTIFIED SOLUTION
Avatar of Flyster
Flyster
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Or if you want it in a query you can use:

Format( [DATE] ."mm/yyy")
Avatar of leezac
leezac

ASKER

Thank you!
If you use Format() as suggested above, I recommend using yyyy/mm instead: if you ever sort on that column, using yyyy/mm will guarantee a proper sort order.  If you use mm/yyyy instead, then a value such as 02/2013 will sort ahead of 12/1950.