Month Based Arithmetic Routines Category

Various routines for Manipulating Month based Info.

Routines
AddCalendarMonthsAdds a Specified Number of Calendar Months to a Given Date/Time.
AddMonthsAdds a Floating Point amount of Months to a Given Date/Time.
AgeAtDateInMonthsReturns the Age (in months) of a "person" given their Date of Birth (DOB) and the Date of Reference (DT).
AgeNowInMonthsReturns the current Age (in months) of a "person" given their Date of Birth (DOB) using the System Date.
Date2LongMonthReturns the Long Month Description for the supplied Date.
Date2MonthReturns the Month number from a given date/time, 1 = Jan, etc.
Date2ShortMonthReturns the Short Month Description for the supplied Date.
Date2ShortMonthYYReturns the Short Month Description for the supplied Date followed by a space then the last two digits of the year.
Date2ShortMonthYYYYReturns the Short Month Description for the supplied Date followed by a space then the year.
Date2YearMonthReturns the (Year * 100 + Month) number for a given date/time, 3 Mar 2000 would give 200003
DatesInSameMonthReturns true if both DateTimes refer to the same Calendar Month, can have different years.
DatesInSameMonthYearReturns true if both DateTimes refer to the exact same Month, cannot have different years.
DayOfMonth2DateReturns the Given Occurrence (Day of Month) of a Day of Week in a given Month/Year.
DaysInMonthReturns the number of days in the Month represented by the given Date.
DaysInThisMonthReturns the number of days in the current Month.
DaysLeftInMonthReturns the Number of days left in the Month represented by the given Date.
DaysLeftInThisMonthReturns the number of days left in the current Month.
GetFirstDayOfMonthReturns First Day of the Month, for a given Date/Time - Time portion preserved.
GetLastDayOfMonthReturns Last Day of the Month, for a given Date/Time - Time portion preserved.
IsFirstDayOfMonthReturns true if the date is the first day of a Month.
IsFirstDayOfMonthNowReturns true if today is the first day of a Month.
IsLastDayOfMonthReturns true if the date is the last day of a Month.
IsLastDayOfMonthNowReturns true if today is the last day of a Month.
IsValidLongMonthReturns True if Month can be found in the Long Months from the Regional Settings.
IsValidShortMonthReturns True if Month can be found in the Short Months from the Regional Settings.
MonthName2MonthGiven a Month Name this routines searches through the Short and then Long Month Names supplied in the Registry to do a Left Match, and then return the Month Number.
OptThisMonthReturns the current Month - from Today's Date.
SubtractMonthsSubtracts a Floating Point amount of Months from a Given Date/Time.
ThisMonthReturns the current Month - from Today's Date.


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