Interface IDateFormat2
- Namespace
- ESRI.ArcGIS.esriSystem
- Assembly
- ESRI.Server.System.dll
Provides access to members that format date time.
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("1514C0E1-D8B4-4496-B5FE-EF2085308EDC")]
public interface IDateFormat2 : IDateFormat
Properties
Calendar
esriCalendarEnum Calendar { get; set; }
Property Value
Format
string Format { get; set; }
Property Value
IsHighPrecision
Sets a value indicating if the date is high precision and should display milliseconds when no format string is provided.
bool IsHighPrecision { get; set; }
Property Value
Locale
string Locale { get; set; }
Property Value
TimeOnly
Indicates if formatted date time contains time only.
bool TimeOnly { get; set; }
Property Value
Methods
FromOADate(double, out int, out int, out int, out int, out int, out int, out int, out int)
void FromOADate(double oadate, out int Year, out int Month, out int Day, out int Hour, out int Minute, out int Second, out int millisecond, out int DayOfWeek)
Parameters
oadatedoubleYearintMonthintDayintHourintMinuteintSecondintmillisecondintDayOfWeekint
TimestampOffsetToString(double, short)
Converts a timestamp with offset to a formatted string.
string TimestampOffsetToString(double TimeStamp, short offsetInMinutes)
Parameters
Returns
ToOADate(int, int, int, int, int, int, int)
double ToOADate(int Year, int Month, int Day, int Hour, int Minute, int Second, int millisecond)