Wrox Home  
Search P2P Archive for: Go

  Return to Index  

ado_dotnet thread: Addition Date.....


Message #1 by "utehn sosraing" <utehn@h...> on Sun, 2 Mar 2003 05:19:12
I am using VB.NET windows forms.
I have problem with addition(+) between startdate and enddate
I want to show value to total how many day
example
startdate =#01/01/2003#
enddate =#02/05/2003#
totaldate = startdate+enddate
what is sum value totaldate?
Can any one help?
Thanks
Message #2 by "Duncan" <duncan.faulkner1@b...> on Sun, 2 Mar 2003 16:42:56 -0000
Hi 

In vb6 there was a command called "DateAdd", this should still be in
Vb.net search MSDN for DateAdd.

DateAdd("day/week/etc..expressed as "d" for day", number of days to add,
from date to add to).

It's something along those lines, I'm doing this from memory.

Duncan

-->-----Original Message-----
-->From: utehn sosraing [mailto:utehn@h...] 
-->Sent: 02 March 2003 05:19
-->To: ADO.NET
-->Subject: [ado_dotnet] Addition Date.....
-->
-->
-->I am using VB.NET windows forms.
-->I have problem with addition(+) between startdate and enddate
-->I want to show value to total how many day
-->example
-->startdate =#01/01/2003#
-->enddate =#02/05/2003#
-->totaldate = startdate+enddate
-->what is sum value totaldate?
-->Can any one help?
-->Thanks
-->===
-->Fast Track ADO.NET with C# is a concise introduction to the 
-->concepts, techniques, and libraries that you will need in 
-->order to start using ADO.NET in your applications. The book 
-->covers DataSets and Typed DataSets, accessing data using 
-->DataReaders and DataAdaptors, the close relationship between 
-->ADO.NET and XML, how and where to use ADO.NET in your 
-->enterprise applications, and how to use Web Services and 
-->ADO.NET to easily pass data between applications. 
-->http://www.wrox.com/books/1861007604.htm
-->---
-->Change your 
-->mail options at 
-->
-->
-->

Message #3 by "Joey Brenn" <Joey@b...> on Sun, 2 Mar 2003 16:05:12 -0600
Try this:
	System.DateTime.Today.AddDays(1)

It adds one day to the current date.

Joey



  Return to Index