• 0

Todays date in VB


Question

I am trying to find the easist way to return the current date in the format of MM/DD/YYYY.

The problem is that Now() returns the time. This is what I currently have, im looking for a better/easier way.

 
dtTodaysDate = Now
strDateSent = Format(dtTodaysDate, "MM/DD/YYYY")
dtTodaysDate = DateValue(strDateSent)
dtDateSent = dtTodaysDate

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.