Class DateTimeExtensions
- Namespace
- Songhay.Extensions
- Assembly
- SonghayCore.dll
Extensions of DateTime.
public static class DateTimeExtensions
- Inheritance
-
DateTimeExtensions
- Inherited Members
Remarks
From Jon Skeet’s Miscellaneous Utility Library Copyright (c) 2004-2008 Jon Skeet and Marc Gravell. All rights reserved. [http://www.pobox.com/~skeet/csharp/miscutil]
Methods
April(int, int)
Returns a DateTime representing the specified day in April in the specified year.
public static DateTime April(this int day, int year)
Parameters
Returns
August(int, int)
Returns a DateTime representing the specified day in August in the specified year.
public static DateTime August(this int day, int year)
Parameters
Returns
December(int, int)
Returns a DateTime representing the specified day in December in the specified year.
public static DateTime December(this int day, int year)
Parameters
Returns
February(int, int)
Returns a DateTime representing the specified day in February in the specified year.
public static DateTime February(this int day, int year)
Parameters
Returns
GetNextWeekday(DateTime, DayOfWeek)
Gets the next weekday.
public static DateTime GetNextWeekday(this DateTime start, DayOfWeek day)
Parameters
Returns
Remarks
by Jon Skeet
For more detail, see: http://stackoverflow.com/questions/6346119/asp-net-get-the-next-tuesday
January(int, int)
Returns a DateTime representing the specified day in January in the specified year.
public static DateTime January(this int day, int year)
Parameters
Returns
July(int, int)
Returns a DateTime representing the specified day in July in the specified year.
public static DateTime July(this int day, int year)
Parameters
Returns
June(int, int)
Returns a DateTime representing the specified day in June in the specified year.
public static DateTime June(this int day, int year)
Parameters
Returns
March(int, int)
Returns a DateTime representing the specified day in March in the specified year.
public static DateTime March(this int day, int year)
Parameters
Returns
May(int, int)
Returns a DateTime representing the specified day in May in the specified year.
public static DateTime May(this int day, int year)
Parameters
Returns
November(int, int)
Returns a DateTime representing the specified day in November in the specified year.
public static DateTime November(this int day, int year)
Parameters
Returns
October(int, int)
Returns a DateTime representing the specified day in October in the specified year.
public static DateTime October(this int day, int year)
Parameters
Returns
September(int, int)
Returns a DateTime representing the specified day in September in the specified year.
public static DateTime September(this int day, int year)
Parameters
Returns
ToIso8601String(DateTime)
Converts the specified DateTime to the JSON-friendly ISO_8601 text format.
public static string ToIso8601String(this DateTime dateTime)