Skip to content

DateTime Functions

NileshGhodekar edited this page May 24, 2020 · 7 revisions

DateTime Functions

Function Description
After Returns a Boolean value indicating whether the first date is later than the second.
Before Returns a Boolean value indicating whether the first date is earlier than the second.
DateTimeAdd Adds (or Subtracts) a timespan to/from the supplied date/time.
DateTimeFormat Formats the value of the first DateTime parameter in the format specified in the second string parameter.
DateTimeFromFileTimeUTC Converts the specified Windows file time to an equivalent UTC time.
DateTimeFromString Converts the specified string representation to an equivalent UTC datetime.
DateTimeNow Returns the current date/time in UTC.
DateTimeSubtract Returns the timespan between the two dates.
DateTimeToFileTimeUTC Converts a date in the Windows file time format.
DateTimeUtcToLocalTime Convert a date to the local time or specified time zone.
Clone this wiki locally