A week date on the format YYYY-Www-D, as defined by ISO 8601.
ISO 8601 defines week numbers in the following way. The week with the year's first Thursday in
it is called week 01. Weeks are numbered from 01 to 52 or 53.
ISO 8601 also defines numbers for day of week. Monday is number 1, Tuesday number 2 and so on
up to Sunday which is number 7. Use the Weekday enumeration to convert between
day numbers and day names.
Inheritance Hierarchy
Apptus.ESales.Connector.TimeIsoDate
Apptus.ESales.Connector.TimeWeekDate
Namespace: Apptus.ESales.Connector.Time
Assembly: Apptus.Esales.ConnectorApi (in Apptus.Esales.ConnectorApi.dll) Version: 4.0.0
Syntax
C#
public class WeekDate : IsoDate
The WeekDate type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | WeekDate |
Creates a new week date with the specified year, week and day of week. Day of week
may be omitted, causing less precision. If day of week is omitted, then week number
may also be omitted. However, year is required.
|
Properties
Name | Description | |
---|---|---|
![]() | DayOfWeek |
The day of week. May be null.
|
![]() | Week |
The week number. May be null.
|
![]() | Year |
The week year.
(Overrides IsoDateYear.) |
Methods
Name | Description | |
---|---|---|
![]() ![]() | DayOfWeekFromNumber |
Returns the day of week for corresponding to the specified day number according to ISO 8601.
|
![]() | Equals | (Inherited from IsoDate.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from IsoDate.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() ![]() | NumberForDayOfWeek |
Returns the ISO 8601 number for a specific day of week.
|
![]() | ToString | (Overrides ObjectToString.) |
![]() | ToTimePoint |
Returns a point in time represented by that date and a supplied
time of day. If the date or time lacks precision, or if the time is
omitted, then the smallest valid point in time for this specification
is returned.
(Overrides IsoDateToTimePoint(Time, TimeZoneInfo).) |
See Also