Hi I have an app that I compleated about 2 years ago with vs2010 and all is working.
Now I just oppened the app in vs to make some additions and the error 'Format' is a type and cannot be used as an expression is all over the entire app in lines similar to these ones in the format function.

 lblCustDate.Text = Format$(Now, "MMM-dd-yy")
 lblDesignEditDate.Text = Format$(Now, "MMM-dd-yy")

Recommended Answers

All 2 Replies

thanks rproffitt
the links helped.
Here is my new format

lblCustDate.Text = Now().ToString("MMM-dd-yy")
commented: Good move IMO. Avoid using language keywords as your own. Some may disagree. +10
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.