Get Week Dates

Returns the start and end dates of the week for the specified year and week number.


⬅️INPUT

Parameter

Type

Required

Description

Year

Int32

❌ No

Year (e.g. 2025)

Week

Int32

❌ No

Week number (1–53)

CalendarWeekRule

Int32

❌ No

Calendar week rule

FirstDayOfWeek

Int32

❌ No

First day of the week (0=Sunday, 1=Monday, etc.)


➡️OUTPUT

Parameter

Type

Description

IsGetWeekDatesSuccessful

Boolean

Whether the operation succeeded

GetWeekDatesMessage

String

Operation result message

WeekStartDate

DateTime

First day of the week

WeekEndDate

DateTime

Last day of the week


⬇️MISC

Parameter

Type

Default

Description

ThrowException

Boolean

❌No

Whether to throw an exception on error