SubtractMonths Method

Summary
Returns a new DateTime that is computed by subtracting months from currentDateTime
Syntax
C#
VB
C++
public static DateTime SubtractMonths( 
   this DateTime currentDateTime, 
   int months 
) 
<ExtensionAttribute()> 
Public Shared Function SubtractMonths( _ 
   ByVal currentDateTime As Date, _ 
   ByVal months As Integer _ 
) As Date 
[ExtensionAttribute()] 
public: 
static DateTime SubtractMonths(  
   DateTime currentDateTime, 
   int months 
)  

Parameters

currentDateTime
Any DateTime object

months
Number of months to subtract

Return Value

A new DateTime that is computed by subtracting months from currentDateTime

Requirements

Target Platforms

Help Version 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom.Common Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.