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 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Dicom.Common Assembly