PC Review


Reply
Thread Tools Rate Thread

datetime operations

 
 
Ariel Gimenez
Guest
Posts: n/a
 
      9th Jan 2004
Hi,
i just want to know how is the better way to substract days from a datetime
value...
i have one datetime value and want to calculate the day after...

thanks in advance


 
Reply With Quote
 
 
 
 
Manoj G [MVP]
Guest
Posts: n/a
 
      9th Jan 2004
Use the AddDays method. You can also pass a -ve number to it.

--
HTH,
Manoj G [.NET MVP]
Site: http://www15.brinkster.com/manoj4dotnet
Blog: http://msmvps.com/manoj/

"Ariel Gimenez" <arielgimenez@NO_SPAMhotmail.com> wrote in message
news:(E-Mail Removed)...
> Hi,
> i just want to know how is the better way to substract days from a

datetime
> value...
> i have one datetime value and want to calculate the day after...
>
> thanks in advance
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Millisecond values missing when inserting datetime into datetime column of sql Server Manikandan Microsoft C# .NET 4 18th Jul 2007 08:59 PM
How can I save a DateTime from my C# program into a SQL Server (datetime) database column. Steve Kershaw Microsoft ASP .NET 5 29th Aug 2006 03:10 AM
DateTime conversion to its sqlServer datetime float representation. A.Neves Microsoft C# .NET 1 20th Apr 2006 01:01 PM
Re: converting Unix datetime count to .Net DateTime object Mark Worrall Microsoft C# .NET 1 4th Feb 2004 07:29 AM
converting Unix datetime count to .Net DateTime object Mark Worrall Microsoft Dot NET 1 4th Feb 2004 06:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:57 AM.