Class SepaDateUtil
Utility methods for working with SEPA dates and schedules.
Inheritance
System.Object
SepaDateUtil
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Subsembly.Sepa
Assembly: Subsembly.Sepa.dll
Syntax
public static class SepaDateUtil
Methods
GetNextBankBusinessDay()
Determine the next bank business day (never today).
Declaration
public static DateTime GetNextBankBusinessDay()
Returns
Type | Description |
---|---|
System.DateTime | The returned date is at least tomorrows date, but may be further in the future because of weekends and public holidays. |
GetNextBankBusinessDay(DateTime)
Determine the next bank business day (never today).
Declaration
public static DateTime GetNextBankBusinessDay(DateTime tToday)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | tToday | Day that should be assumed as today. |
Returns
Type | Description |
---|---|
System.DateTime | The returned date is at least one day after |
IsBankBusinessDay(DateTime)
Check whether the given date is a bank business day.
Declaration
public static bool IsBankBusinessDay(DateTime tDate)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | tDate |
Returns
Type | Description |
---|---|
System.Boolean |
PreviousBankBusinessDay(DateTime)
Returns the bank business day preceeding the given date.
Declaration
public static DateTime PreviousBankBusinessDay(DateTime tDate)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | tDate | The date for which to return the previous bank business date. |
Returns
Type | Description |
---|---|
System.DateTime | The date of the previous bank business day. If the parameter
|