Howzit
|
Posted: 04/02/2004, 4:04 AM |
|
How can I have an expression with Now() in ASP.net using VB
In ASP it works, but in ASP.net I get this error:
"Form Parameters: Unable to parse DateTime:String was not recognized as a
valid DateTime."
|
|
|
Tony Do
|
Posted: 04/16/2004, 7:06 PM |
|
Use the DataTime.Now() Or
Microsoft.VisualBasic.Now()
Most of the old asp functions can be used in NET with Microsoft.VisualBasic
namespace
"Howzit" <hrbotha@absa.co.za> wrote in message
news:c4jkso$m9h$1@news.codecharge.com...
> How can I have an expression with Now() in ASP.net using VB
> In ASP it works, but in ASP.net I get this error:
> "Form Parameters: Unable to parse DateTime:String was not recognized as a
> valid DateTime."
>
>
|
|
|
LV
|
Posted: 05/21/2004, 6:10 AM |
|
Here is what I used to stamp the current date when user saves the record using the following format month/day/year.
I add this code to the Form's before update event. Note the MM is the Date if you enter mm, you will get the minutes instead.
AccountsDateModified.Text=DateTime.Now.ToString("MM/dd/yyyy")
|
|
|
|