date stuff

//gets todays date
Dim d As New Date

//displays 8/5/17
MsgBox(d.shortdate)

how do I get the month and the day (5) from New Date?
MsgBox (d.month) does not work
MsgBox (d.day) does not work

this works
msgbox(Str(d.DayOfWeek)) //7

figured it out

//gets todays date
Dim d As New Date

//displays 8/5
msgbox(Str(d.month)) + “/” + (Str(d.Day))

now, how do I get a variable to = (Str(d.month)) + “/” + (Str(d.Day)
Dim t as (Str(d.month)) + “/” + (Str(d.Day) doesn’t work

Try this:

Dim t as String = Str(d.month) + "/" + Str(d.Day)

Or:

Dim t as String t = Str(d.month) + "/" + Str(d.Day)

Or even msgbox (d.month.totext)