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

esriCalendarEnum

Format

string Format { get; set; }

Property Value

string

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

bool

Locale

string Locale { get; set; }

Property Value

string

TimeOnly

Indicates if formatted date time contains time only.

bool TimeOnly { get; set; }

Property Value

bool

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

oadate double
Year int
Month int
Day int
Hour int
Minute int
Second int
millisecond int
DayOfWeek int

TimestampOffsetToString(double, short)

Converts a timestamp with offset to a formatted string.

string TimestampOffsetToString(double TimeStamp, short offsetInMinutes)

Parameters

TimeStamp double
offsetInMinutes short

Returns

string

ToOADate(int, int, int, int, int, int, int)

double ToOADate(int Year, int Month, int Day, int Hour, int Minute, int Second, int millisecond)

Parameters

Year int
Month int
Day int
Hour int
Minute int
Second int
millisecond int

Returns

double