Excel VBA - Rertun Date Value minus time

Hi, how do I refer to a cell with date and time and grab only the date?

Msgbox Tag = Sheets("TEST").Range("G2")      gives me a whole date and time found in G2, and I just want date in a given format, e.g., dd/mm/yy


Who is Participating?
SiddharthRoutConnect With a Mentor Commented:
Msgbox Format(Sheets("TEST").Range("G2"),"dd/mm/yy")

NewToVBAAuthor Commented:
Excellent, thank you, Sid. As I said a week ago, I want to learn from you.... :-)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.