CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> .NET

 Current Date + 30 days

Print topic Send  topic

Author Message
dave

Posts: 9
Posted: 09/18/2006, 7:40 AM

I'm trying to set an expiry date on insert of a new record. Using custom insert I can setup an expression no problem to force it to be current date using the Now() function, but how can I add 30 days to the current date? Any help would be appreciated.

TIA
View profile  Send private message
matheus

Posts: 386
Posted: 09/18/2006, 7:48 AM

Which database?

This is a database resource.

Look in database documentation. "Date Functions".
_________________
Matheus Trevizan

Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br
View profile  Send private message
dave

Posts: 9
Posted: 09/18/2006, 7:51 AM

sql server.
View profile  Send private message
dave

Posts: 9
Posted: 09/18/2006, 9:22 AM

Got it on the database.

(dateadd(month,(3),getdate()))

thanks matheus
View profile  Send private message

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.