Datetime
ASP.NET
5
Posts
4
Posters
0
Views
1
Watching
-
Assuming that you don't need to bother about Time zones, Day light savings etc., you can use the
AddMonths
method of theDateTime
instance. You just need to pass negative value to subtract and positive value to add. MSDN listing for AddMonths method[^] HTH! -
Assuming that you don't need to bother about Time zones, Day light savings etc., you can use the
AddMonths
method of theDateTime
instance. You just need to pass negative value to subtract and positive value to add. MSDN listing for AddMonths method[^] HTH! -
I dont know is this posible in asp.net but you try this with Sql 'Select DateAdd(month,-6,'03/06/2010')' Output :'2009-09-06 00:00:00.000' :-O