Skip to content

Tag Archives: CSharp DateTime Struct

This method is used to convert the value of this instance to the equivalent OLE Automation date. Syntax: public double ToOADate (); Return Value: This… Read More
This method is used to convert the value of the current DateTime object to its equivalent long time string representation. Syntax: public string ToLongTimeString ();… Read More
This method is used to convert the value of the current DateTime object to local time. Syntax: public DateTime ToLocalTime (); Return Value: This method… Read More
This method is used to convert the value of the current DateTime object to its equivalent long date string representation. Syntax: public string ToLongDateString ();… Read More
This method is used to convert the value of the current DateTime object to a Windows file time. Syntax: public long ToFileTime (); Return Value:… Read More
This method is used to subtract the specified time or duration from this instance. There are 2 methods in the overload list of this method… Read More
This method is used to serializes the current DateTime object to a 64-bit binary value that subsequently can be used to recreate the DateTime object.… Read More
This method is used to create a new DateTime object which has the same number of ticks as the specified DateTime but is designated as… Read More
This method is used to indicate whether this instance of DateTime is within the daylight saving time range for the current time zone. Syntax: public… Read More
This method is used to Converts the value of the current DateTime object to its equivalent string representation. There are total 4 methods in the… Read More
This method is used to return the TypeCode for value type DateTime. Syntax: public TypeCode GetTypeCode (); Return Value: This method returns the enumerated constant,… Read More
This method is used to return the hash code for this instance. Syntax: public override int GetHashCode (); Return Value: This method returns a 32-bit… Read More
This method is used to convert the value of the current DateTime object to Coordinated Universal Time (UTC). Syntax: public DateTime ToUniversalTime (); Return Value:… Read More
This method is used to convert the value of this instance to all the string representations supported by the standard date and time format specifiers.… Read More
This method is used to convert the value of the current DateTime object to its equivalent short date string representation. Syntax: public string ToShortDateString ();… Read More