Link to home
Start Free TrialLog in
Avatar of MikeCombe
MikeCombeFlag for United States of America

asked on

How to use DateTime.now in Visual Studio 2010

Using VS10 & ASP.NET 3.5

It doesn't like me to use....
    dim dt as DateTime = DateTime.now     <--- no property with "now"

What's that about ???
Avatar of Bill Nolan
Bill Nolan
Flag of United States of America image

"now" should be "Now".
Avatar of MikeCombe

ASKER

I agree....that was my typo.
However....that is not the issue

In an ASPX file it works as expected.
In an ASMX file it does NOT work.
VS10 acts like it doesn't understand it.
I have "Imports System in my ASMX file.
What is missing ?

ASKER CERTIFIED SOLUTION
Avatar of MikeCombe
MikeCombe
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
as stated