Table of contents
TOC
Collapse the table of content
Expand the table of content

DateTime functions

Owen Duncan|Last Updated: 4/19/2018

DateTime

FunctionDescription
DateTime.AddZoneAdds the timezonehours as an offset to the input datetime value and returns a new datetimezone value.
DateTime.DateReturns a date part from a DateTime value
DateTime.FixedLocalNowReturns a DateTime value set to the current date and time on the system.
DateTime.FromReturns a datetime value from a value.
DateTime.FromFileTimeReturns a DateTime value from the supplied number.
DateTime.FromTextReturns a DateTime value from a set of date formats and culture value.
DateTime.IsInCurrentHourIndicates whether the given datetime value occurs during the current hour, as determined by the current date and time on the system.
DateTime.IsInCurrentMinuteIndicates whether the given datetime value occurs during the current minute, as determined by the current date and time on the system.
DateTime.IsInCurrentSecondIndicates whether the given datetime value occurs during the current second, as determined by the current date and time on the system.
DateTime.IsInNextHourIndicates whether the given datetime value occurs during the next hour, as determined by the current date and time on the system.
DateTime.IsInNextMinuteIndicates whether the given datetime value occurs during the next minute, as determined by the current date and time on the system.
DateTime.IsInNextNHoursIndicates whether the given datetime value occurs during the next number of hours, as determined by the current date and time on the system.
DateTime.IsInNextNMinutesIndicates whether the given datetime value occurs during the next number of minutes, as determined by the current date and time on the system.
DateTime.IsInNextNSecondsIndicates whether the given datetime value occurs during the next number of seconds, as determined by the current date and time on the system.
DateTime.IsInNextSecondIndicates whether the given datetime value occurs during the next second, as determined by the current date and time on the system.
DateTime.IsInPreviousHourIndicates whether the given datetime value occurs during the previous hour, as determined by the current date and time on the system.
DateTime.IsInPreviousMinuteIndicates whether the given datetime value occurs during the previous minute, as determined by the current date and time on the system.
DateTime.IsInPreviousNHoursIndicates whether the given datetime value occurs during the previous number of hours, as determined by the current date and time on the system.
DateTime.IsInPreviousNMinutesIndicates whether the given datetime value occurs during the previous number of minutes, as determined by the current date and time on the system.
DateTime.IsInPreviousNSecondsIndicates whether the given datetime value occurs during the previous number of seconds, as determined by the current date and time on the system.
DateTime.IsInPreviousSecondIndicates whether the given datetime value occurs during the previous second, as determined by the current date and time on the system.
DateTime.LocalNowReturns a datetime value set to the current date and time on the system.
DateTime.TimeReturns a time part from a DateTime value.
DateTime.ToRecordReturns a record containing parts of a DateTime value.
DateTime.ToTextReturns a text value from a DateTime value.
© 2018 Microsoft