Class Dates
- Namespace
- PHCLibrary.Utils
- Assembly
- PHCLibrary.dll
- Inheritance
-
Dates
Fields
PictureData
public const string PictureData = "dd.MM.yyyy"
Field Value
- string
PictureDataHora
public const string PictureDataHora = "dd.MM.yyyy HH:mm"
Field Value
- string
PictureDataTime
public const string PictureDataTime = "dd.MM.yyyy HH:mm:ss"
Field Value
- string
PictureTime
public const string PictureTime = "HH:mm:ss"
Field Value
- string
Properties
public static DateTimeFormatInfo DefaultDateTimeFormat { get; }
Property Value
- DateTimeFormatInfo
MaxBusinessDate
public static DateTime MaxBusinessDate { get; }
Property Value
- DateTime
MinBusinessDate
public static DateTime MinBusinessDate { get; }
Property Value
- DateTime
Methods
DTOC(DateTime)
[Obsolete("Use ToCarater extension")]
public static string DTOC(DateTime dDate)
Parameters
Returns
- string
DTOC(DateTime, string)
[Obsolete("Use ToCarater extension")]
public static string DTOC(DateTime dDate, string sFormat)
Parameters
Returns
- string
DTOISO(DateTime)
[Obsolete("Use ToISO extension")]
public static string DTOISO(DateTime dDate)
Parameters
Returns
- string
DTOS(DateTime)
[Obsolete("Use ToSerial extension")]
public static string DTOS(DateTime dDate)
Parameters
Returns
- string
GetElapsedTime(DateTime, DateTime)
public static string GetElapsedTime(DateTime startDate, DateTime endDate)
Parameters
Returns
- string
GetEpochDate()
public static DateTime GetEpochDate()
Returns
- DateTime
ISOTOD(string)
[Obsolete("Use ISOtoDate extension")]
public static DateTime ISOTOD(string sDate)
Parameters
| Nome |
Tipo |
Descrição |
sDate |
string |
|
Returns
- DateTime
PictureDatasHoras(DateTime, DateTime)
public static string PictureDatasHoras(DateTime dhiDate, DateTime dhfDate)
Parameters
Returns
- string
STOD(string)
[Obsolete("Use ToDate extension")]
public static DateTime STOD(string sDate)
Parameters
| Nome |
Tipo |
Descrição |
sDate |
string |
|
Returns
- DateTime
TimeZoneDate()
public static DateTime TimeZoneDate()
Returns
- DateTime
timezoneDate(DateTime)
[Obsolete("Use ToTimeZoneDate extension")]
public static DateTime timezoneDate(DateTime dt)
Parameters
Returns
- DateTime
timezoneDate(string)
[Obsolete("Use ToTimeZoneDate extension")]
public static DateTime timezoneDate(string dt)
Parameters
Returns
- DateTime
TimeZoneOnlyDate()
public static DateTime TimeZoneOnlyDate()
Returns
- DateTime
TimeZoneOnlyDate(DateTime)
[Obsolete("Use ToTimeZoneDate extension")]
public static DateTime TimeZoneOnlyDate(DateTime dataItem)
Parameters
Returns
- DateTime
TimeZoneOnlyDate(int, int, int)
public static DateTime TimeZoneOnlyDate(int year, int month, int day)
Parameters
| Nome |
Tipo |
Descrição |
year |
int |
|
month |
int |
|
day |
int |
|
Returns
- DateTime
ctod(string)
[Obsolete("Use ToDate extension")]
public static DateTime ctod(string dt)
Parameters
Returns
- DateTime
getDateFromEpochTime(double)
[Obsolete("Use ToDateTime extension")]
public static DateTime getDateFromEpochTime(double time)
Parameters
| Nome |
Tipo |
Descrição |
time |
double |
|
Returns
- DateTime
getEndOfMonth(DateTime)
[Obsolete("Use GetDayEndOfMonth extension")]
public static int getEndOfMonth(DateTime value)
Parameters
Returns
- int
getEndOfMonthDate(DateTime)
[Obsolete("Use EndOfMonthDate extension")]
public static DateTime getEndOfMonthDate(DateTime value)
Parameters
Returns
- DateTime
getEpochFromDate(DateTime)
[Obsolete("Use EpochFromDate extension")]
public static double getEpochFromDate(DateTime targetDate)
Parameters
Returns
- double
getLocaleMonthKey(DateTime)
[Obsolete("Use GetLocaleKeyMonth extension")]
public static string getLocaleMonthKey(DateTime value)
Parameters
Returns
- string
getSepDate(string)
[Obsolete("Use GetDateSeparator extension")]
public static string getSepDate(string strDate)
Parameters
| Nome |
Tipo |
Descrição |
strDate |
string |
|
Returns
- string
getStartOfMonthDate(DateTime)
[Obsolete("Use StartOfMonthDate extension")]
public static DateTime getStartOfMonthDate(DateTime value)
Parameters
Returns
- DateTime
getWeekNumber(DateTime)
[Obsolete("Use WeekNumber extension")]
public static int getWeekNumber(DateTime value)
Parameters
Returns
- int
greaterOrEqualThen(DateTime, DateTime)
[Obsolete]
public static bool greaterOrEqualThen(DateTime dt1, DateTime dt2)
Parameters
Returns
- bool
greaterThen(DateTime, DateTime)
[Obsolete]
public static bool greaterThen(DateTime dt1, DateTime dt2)
Parameters
Returns
- bool
isEndOfMonth(DateTime)
[Obsolete("Use IsDayEndOfMonth extension")]
public static bool isEndOfMonth(DateTime value)
Parameters
Returns
- bool
isValidDate(DateTime)
[Obsolete("Use IsValidDateTime extension")]
public static bool isValidDate(DateTime value)
Parameters
Returns
- bool