Skip to content

M_CodeJam_Dates_DateTimeExtensions_PrevYear_1

andrewvk edited this page Nov 5, 2016 · 3 revisions

DateTimeExtensions.PrevYear Method (DateTimeOffset)

Returns previous year of the date.

Namespace: CodeJam.Dates
Assembly: CodeJam (in CodeJam.dll) Version: 1.1.0.0 (1.1.0.0)

Syntax

C#

public static DateTimeOffset PrevYear(
	this DateTimeOffset date
)

VB

<ExtensionAttribute>
Public Shared Function PrevYear ( 
	date As DateTimeOffset
) As DateTimeOffset

F#

[<ExtensionAttribute>]
static member PrevYear : 
        date : DateTimeOffset -> DateTimeOffset 

Parameters

 

date
Type: System.DateTimeOffset
The date.

Return Value

Type: DateTimeOffset
Previous year.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DateTimeOffset. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

DateTimeExtensions Class
PrevYear Overload
CodeJam.Dates Namespace

Clone this wiki locally