DateTime Extension 1.0

Extension methods for the DateTime class.

Methods

  • GetFirstDayOfYear(this DateTime date) -- Gets the first day of the year in the specified date.
  • GetLastDayOfYear(this DateTime date) -- Gets the last day of the year in the specified date.
  • GetFirstDayOfMonth(this DateTime date) -- Gets the first day of the month in the specified date.
  • GetLastDayOfMonth(this DateTime date) -- Gets the last day of the month in the specified date.
  • GetFirstDayOfWeek() -- Gets the first day of the week in the specified date.
    • GetFirstDayOfWeek(this DateTime date)
    • GetFirstDayOfWeek(this DateTime date, DayOfWeek firstDayOfWeek)
  • GetLastDayOfWeek() -- Gets the last day of the week in the specified date.
    • GetLastDayOfWeek(this DateTime date)
    • GetLastDayOfWeek(this DateTime date, DayOfWeek firstDayOfWeek)
  • GetMidnight(this DateTime date) -- Gets the beginning of the day in the specified date.
  • GetEndOfDay(this DateTime date) -- Gets the beginning of the day in the specified date.

Details

Assembly: Synergy
Namespace: Synergy.Extensions
Class: DateTimeExtension

Last edited Jan 11, 2010 at 1:17 AM by flanakin, version 1

Comments

No comments yet.