Get Week of Year by Calendar Type
  • 07 Dec 2022
  • 1 Minute to read
  • Dark
    Light

Get Week of Year by Calendar Type

  • Dark
    Light

Article summary

Step Details

Introduced in Version4.0.0
Last Modified in Version7.12.0
LocationData > Dates

The Get Week of Year by Calendar Type step will return the week number of the date to check based on the Calendar Type.




Properties

Inputs

PropertyDescriptionData Type
Calendar Week RuleChoose the Rule of when the week starts: First Day, First Full Week, First Four Day Week.CalendarWeekRule
Date To CheckDate to find the week number of. DateTime
First Day Of WeekPick the first day of the week: Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, or Saturday.DayOfWeek
Full Calendar Type NameType the Full Calendar Type Name desired. Further information can be found at Work with Calendars.

Example Input options:
System.Globalization.GregorianCalendar
System.Globalization.HebrewCalendar
System.Globalization.JapaneseCalendar

If the Full Type Name is not specified properly, the step will fail, stating, "Value cannot be null".
String

Outputs

PropertyDescriptionData Type
GetWeekOfYearByCalendarType1_Output
The numbered week of the year for the Date to Check.Int32


Was this article helpful?