Skip to content

Tag Archives: CSharp DateTime Struct

This method is used to convert the value of the current DateTime object to its equivalent short time string representation. Syntax: public string ToShortTimeString ();… Read More
DateTime.FromOADate(Double) Method is used to return a DateTime equivalent to the specified OLE Automation Date. Syntax: public static DateTime FromOADate (double d); Here, it takes… Read More
DateTime.FromFileTimeUtc(Int64) Method is used to convert the specified Windows file time to an equivalent UTC time.  Syntax: public static DateTime FromFileTimeUtc (long fileTime); Here, it takes… Read More
This method is used to get a value indicating whether two DateTime objects, or a DateTime instance and another object or DateTime, have the same… Read More
DateTime.FromFileTime(Int64) Method is used to converts the specified Windows file time to an equivalent local time. Syntax: public static DateTime FromFileTime (long fileTime); Here, it… Read More
DateTime.FromBinary(Int64) Method is used to deserialize a 64-bit binary value and recreates an original serialized DateTime object.  Syntax: public static DateTime FromBinary (long dateData); Here, it… Read More
This method is used to return a new DateTime that adds the specified number of milliseconds to the value of this instance. Syntax: public DateTime… Read More
This method returns the number of days in the specified month and year. This method always interprets month and year as the month and year… Read More
This method returns an indication of whether the specified year is a leap year or not. Here, the year is always interpreted as a year… Read More
This method is used to compare the value of this instance to a specified DateTime value and indicates whether this instance is earlier than, the… Read More
This method is used to returns a new DateTime that adds the specified number of ticks to the value of this instance. This method does… Read More
This method is used to compare two instances of DateTime and returns an integer that indicates whether the first instance is earlier than, the same… Read More
This method is used to returns a new DateTime that adds the specified number of years to the value of this instance. Syntax: public DateTime… Read More
This method is used to return a new DateTime that adds the specified number of hours to the value of this instance. Syntax: public DateTime… Read More
This method is used to return a new DateTime that adds the specified number of days to the value of this instance. Syntax: public DateTime… Read More

Start Your Coding Journey Now!