DateTimeExtensions.RelativeDate(this DateTime date, int? n) Method
.NET Standard 2.x
Obtains the DateTime? that occurs a specified number of days after or before another DateTime.
Namespace: PowerScript.Bridge
Assembly: PowerScript.Bridge.dll
Syntax
public static DateTime? RelativeDate(this DateTime date, int? n);
Parameters
date
System.DateTime
A value of type DateTime.
n
System.Int32
An Int32 indicating a number of days.
Returns
System.DateTime
Returns the DateTime? that occurs n days after DateTime if n is greater than 0. Returns the date that occurs n days before date if n is less than 0. If n is null, RelativeDate returns null.
Examples
Coming soon.
Applies to
.NET Standard
2.x