CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 Include Now() in Update/Add function

Print topic Send  topic

Author Message
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")

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.