Class DateTimeExtensions
Contains the extension methods to get the total weeks
in month/year, to find the StartOfWeek and to add
TimeSpan value of appointment start and end time.
Inheritance
System.Object
DateTimeExtensions
Assembly: Syncfusion.SfSchedule.UWP.dll
Syntax
public static class DateTimeExtensions : Object
Methods
AddTimeSpan(DateTime, TimeSpan)
Declaration
public static DateTime AddTimeSpan(this DateTime datetime, TimeSpan timespan)
Parameters
Type |
Name |
Description |
System.DateTime |
datetime |
|
System.TimeSpan |
timespan |
|
Returns
GetWeekOfMonth(DateTime)
Declaration
public static int GetWeekOfMonth(this DateTime time)
Parameters
Type |
Name |
Description |
System.DateTime |
time |
|
Returns
StartOfWeek(DateTime, DayOfWeek)
Declaration
public static DateTime StartOfWeek(this DateTime dt, DayOfWeek startOfWeek)
Parameters
Type |
Name |
Description |
System.DateTime |
dt |
|
System.DayOfWeek |
startOfWeek |
|
Returns
SubractDays(DateTime, Int32)
Declaration
public static DateTime SubractDays(this DateTime dt, int days)
Parameters
Type |
Name |
Description |
System.DateTime |
dt |
|
System.Int32 |
days |
|
Returns
SubtractDays(DateTime, Int32)
Declaration
public static DateTime SubtractDays(this DateTime datetime, int days)
Parameters
Type |
Name |
Description |
System.DateTime |
datetime |
|
System.Int32 |
days |
|
Returns
WeeksInMonth(DateTime)
Declaration
public static int WeeksInMonth(this DateTime time)
Parameters
Type |
Name |
Description |
System.DateTime |
time |
|
Returns