Interface IDateFormat

Namespace
ESRI.ArcGIS.esriSystem
Assembly
ESRI.Server.System.dll

Provides access to members that format date time.

[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("9FA0D58F-3FC7-45B4-95A3-DB8961ED6E00")]
public interface IDateFormat

Properties

Calendar

Calendar used for date time formating. If not set, the default calendar for the locale will be used.

esriCalendarEnum Calendar { get; set; }

Property Value

esriCalendarEnum

Format

Format used to convert date time to string, i.e., yyyy/MM/dd.

string Format { get; set; }

Property Value

string

Locale

Locale used for date time formating, i.e., en-US, zh-CN, ja-JP. If not set, the user default locale will be used.

string Locale { get; set; }

Property Value

string

Methods

FromOADate(double, out int, out int, out int, out int, out int, out int, out int, out int)

Convert OADate to date time with the milliseconds preserved. Day of week is an integer between 0 and 6, where 0 indicates Sunday and 6 indicates Saturday.

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

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

Convert date time to OADate with the milliseconds preserved.

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