Obtain Month and Day in Code

  • Thread starter mattc66 via AccessMonster.com
  • Start date
M

mattc66 via AccessMonster.com

Hi All,

How would I obtain the current Month and Day in Code.

I want it to be formatted as MMDD.

Thanks
Matt
 
D

Douglas J. Steele

What Brendan's suggested is definitely correct. Exactly where what did you
type, and where did you type it?

--
Doug Steele, Microsoft Access MVP

(no private e-mails, please)


mattc66 via AccessMonster.com said:
When I add that to my code it returns "12:00:00 AM". Are you sure this is
what you type in VB?

Brendan said:
? Format(Date(),"mmdd")
1109
[quoted text clipped - 4 lines]
Thanks
Matt
 
Top