Week Based Arithmetic Routines Category

Various routines for Manipulating Week based Info.

Routines
AddWeeksAdds a Floating Point amount of Weeks to a Given Date/Time.
AgeAtDateInWeeksReturns the Age (in weeks) of a "person" given their Date of Birth (DOB) and the Date of Reference (DT).
AgeNowInWeeksReturns the current Age (in weeks) of a "person" given their Date of Birth (DOB) using the System Date.
CalendarMonthsApartReturns the Number of Calendar Months between DT2 and DT1.
CalendarWeeksApartReturns the Number of Calendar Weeks between DT2 and DT1.
Date2ISOWeekEnhStrReturns Date as a Enhanced Format for ISO Calendar Week/Day: YYYY-Www-D where YYYY is year, 'W' is literal, ww is weekno and D is the ISO Day of Week - Monday is First Day.
Date2ISOWeekNoConverts Dates into a Week No and Year according to ISO-8601.
Date2ISOWeekOnlyEnhStrReturns Date as a Enhanced Format for ISO Calendar Week: YYYY-Www where YYYY is year, 'W' is literal, ww is weekno.
Date2ISOWeekOnlyStrReturns Date as a Basic Format for ISO Calendar Week: YYYYWww where YYYY is year, 'W' is literal, ww is weekno.
Date2ISOWeekStrReturns Date as a Basic Format for ISO Calendar Week/Day: YYYYWwwD where YYYY is year, 'W' is literal, ww is weekno and D is the ISO Day of Week - Monday is First Day.
Date2WeekNoConverts Dates into a Week No in the Current Year.
DatesInSameWeekNoReturns true if the two Dates are in the same WeekNo.
DOW2ISODOWConverts a Delphi Day of Week into an ISO-8601 Day Of Week.
DWY2DateReturns the Date for a given Day of Week, a given WeekNo, and the given Year, assuming that the Start of the Week is Sunday, and that DOW uses 1 for Sunday.
EndOfISOWeekReturns the End of the week containing given Date/Time, assumes that the End of the Week is Sunday according to ISO-8601 - Time portion preserved.
EndOfISOWeekNoReturns the End of the Week for the given ISO-8601 WeekNo in the given year.
EndOfWeekReturns the End of the week containing given Date/Time, assumes that the End of the Week is Saturday - Time portion preserved.
EndOfWeekNoReturns the End of the Week for the given WeekNo in the given year, assuming that the End of the Week is Saturday.
ExactWeeksApartReturns the Exact Number of Weeks between DT2 and DT1.
GetFirstMondayOfYearReturns First Monday of the Year, for a given Year.
GetFirstSundayOfYearReturns First Sunday of the Year, for a given Year.
ISODayOfWeekReturns Day Of Week According to ISO-8601 which has Monday as 1 and Sunday as 7.
ISODOW2DOWConverts an ISO-8601 Day of Week into a Delphi Day Of Week.
ISOWeeksApartReturns the Number of ISO Weeks between DT2 and DT1.
ISOWeeksInYearMost years have 52 weeks, but years that start on a Thursday and leap years that start on a Wednesday (or Thursday) have 53 weeks.
ISOYWD2DateReturns the Date for a given Day of Week, a given WeekNo, and the given Year, as defined in ISO-8601.
StartOfISOWeekReturns the Start of the week containing given Date/Time, assumes that the Start of the Week is Monday according to ISO-8601 - Time portion preserved.
StartOfISOWeekNoReturns the Start of the Week for the given ISO-8601 WeekNo in the given year.
StartOfWeekReturns the Start of the week containing given Date/Time, assumes that the Start of the Week is Sunday - Time portion preserved.
StartOfWeekNoReturns the Start of the Week for the given WeekNo in the given year, assuming that the Start of the Week is Sunday.
SubtractWeeksSubtracts a Floating Point amount of Weeks from a Given Date/Time.
ThisISOWeekNoReturns the ISO-8601 WeekNo of the current Date (System Date).
ThisWeekNoReturns the WeekNo of the current Date (System Date).
WeekNosApartReturns true No of Weeks, based on WeekNo, that the two dates are apart.
WeeksApartReturns the Number of Weeks between DT2 and DT1.


HTML generated by Time2HELP
http://www.time2help.com