[This is preliminary documentation and is subject to change.]

The OCDateTime type exposes the following members.

Constructors

  NameDescription
Public methodOCDateTime

Methods

  NameDescription
Public methodStatic memberConvert
Converts the date from one timezone to another
Public methodStatic memberConvertFromTrackerUdfDate
Converts the tracker udf date to screen date format. Tracker udf date is always stored in MM/dd/yyyy format
Public methodStatic memberConvertFromUtc
Given the Date in UTC converts to the correct time in the given timezone
Public methodStatic memberConvertToServerTz
Converts the given date to the user datetime
Public methodStatic memberConvertToTrackerUdfDate
Converts the screen date to tracker udf date format. Tracker udf date is always stored in MM/dd/yyyy format
Public methodStatic memberConvertToUserTzOverloaded.
Public methodStatic memberConvertToUtc
Converts the given time with the timezone to UTC
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberGetCalendarViewName
Returns the string name of the calendar view given the enumerated type
Public methodStatic memberGetDatePart
Gets the date part of the datetime object. Actually this method resets the time part to 12:00:00AM
Public methodStatic memberGetDayOfMonthOverloaded.
Public methodStatic memberGetDayOfWeekName
Gets the day of the week in its string representation
Public methodStatic memberGetDurationColon
Gets the duration in hh:mm format
Public methodStatic memberGetDurationDecimal
Gets the duration in the format hh.mm
Public methodGetHashCode
Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
Public methodStatic memberGetMinutesFromTime
Extracts the number of minutes past midnight for the time string
Public methodStatic memberGetNumberOfDaysInMonth
Gets the number of days in the month
Public methodStatic memberGetPeriodicityName
Returns the name of the periodicity, given the enumerated type.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberParseApproximate
Attempts to parse the date time and returns the mindate if the parse fails.
Public methodStatic memberParseExact
Parses the date exactly from the format. This function tests different value of culture before getting the date
Public methodStatic memberRoundup15
Round up the date in 15 minutes interval
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  NameDescription
Public propertyStatic memberDateInputLabel
The date input label

See Also