Date UtilsTo Day Of Week Method
This can be used to explicitly convert a DaysOfWeek value to a DayOfWeek
value.
Definition
Namespace: EWSoftware.PDI
Assembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2025.1.9.0
Returns the DaysOfWeek value as a DayOfWeek value. If the DaysOfWeek value is a combination of days, only the first day of the week found is returned. If it is set to None, it returns Sunday.
Assembly: EWSoftware.PDI (in EWSoftware.PDI.dll) Version: 2025.1.9.0
C#
public static DayOfWeek ToDayOfWeek(
DaysOfWeek days
)VB
Public Shared Function ToDayOfWeek (
days As DaysOfWeek
) As DayOfWeekC++
public:
static DayOfWeek ToDayOfWeek(
DaysOfWeek days
)F#
static member ToDayOfWeek :
days : DaysOfWeek -> DayOfWeek Parameters
- days DaysOfWeek
- The DaysOfWeek value to convert
Return Value
DayOfWeekReturns the DaysOfWeek value as a DayOfWeek value. If the DaysOfWeek value is a combination of days, only the first day of the week found is returned. If it is set to None, it returns Sunday.