←Select platform

SubtractMonths Method

Summary

Returns a new DateTime that is computed by subtracting months from currentDateTime

Syntax

C#
VB
C++
[ExtensionAttribute()] 
public static DateTime SubtractMonths(  
   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

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Dicom.Common Assembly
Click or drag to resize