Data Structure
Java
Python
HTML
Interview Preparation
Interview Prep
Tutorials
Tracks
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.0K+ articles
Python
19.6K+ articles
Experiences
15.8K+ articles
Interview Experiences
14.3K+ articles
School Learning
11.1K+ articles
JavaScript
9.9K+ articles
Java
9.3K+ articles
C#
1.9K+ articles
CSharp-method
701+ articles
CSharp DateTime Struct
35 posts
Recent Articles
Popular Articles
DateTime.ToOADate() Method in C#
Last Updated: 11 July 2025
This method is used to convert the value of this instance to the equivalent OLE Automation date.Syntax: public double ToOADate ();Return Value: This method returns a doubl...
read more
C#
CSharp-method
CSharp DateTime Struct
DateTime.ToLongTimeString() Method in C#
Last Updated: 11 July 2025
This method is used to convert the value of the current DateTime object to its equivalent long time string representation.Syntax: public string ToLongTimeString ();Return ...
read more
C#
CSharp-method
CSharp DateTime Struct
DateTime.ToLongDateString() Method in C#
Last Updated: 11 July 2025
This method is used to convert the value of the current DateTime object to its equivalent long date string representation.Syntax: public string ToLongDateString ();Return ...
read more
C#
CSharp-method
CSharp DateTime Struct
DateTime.ToLocalTime() Method in C#
Last Updated: 11 July 2025
This method is used to convert the value of the current DateTime object to local time.Syntax: public DateTime ToLocalTime ();Return Value: This method returns an object wh...
read more
C#
CSharp-method
CSharp DateTime Struct
DateTime.ToFileTimeUtc() Method in C#
Last Updated: 11 July 2025
This method is used to convert the value of the current DateTime object to a Windows file time.Syntax: public long ToFileTimeUtc ();Return Value: This method returns the ...
read more
C#
CSharp-method
CSharp DateTime Struct
DateTime.ToFileTime() Method in C#
Last Updated: 11 July 2025
This method is used to convert the value of the current DateTime object to a Windows file time.Syntax: public long ToFileTime ();Return Value: This method returns the valu...
read more
C#
CSharp-method
CSharp DateTime Struct
DateTime.ToBinary() Method in C#
Last Updated: 11 July 2025
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.Syntax: public long To...
read more
C#
CSharp-method
CSharp DateTime Struct
DateTime.Subtract() Method in C#
Last Updated: 11 July 2025
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 as follows:Subtract(DateTime)Sub...
read more
C#
CSharp-method
CSharp DateTime Struct
DateTime.SpecifyKind() Method in C#
Last Updated: 11 July 2025
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 either local time, Coordinated Univer...
read more
C#
CSharp-method
CSharp DateTime Struct
DateTime.IsDaylightSavingTime() Method in C#
Last Updated: 11 July 2025
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 bool IsDaylightSavingTi...
read more
C#
CSharp-method
CSharp DateTime Struct
DateTime.GetTypeCode() Method in C#
Last Updated: 11 July 2025
This method is used to return the TypeCode for value type DateTime.Syntax: public TypeCode GetTypeCode ();Return Value: This method returns the enumerated constant, DateTi...
read more
C#
CSharp-method
CSharp DateTime Struct
DateTime.ToString() Method in C# | Set – 1
Last Updated: 11 July 2025
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 overload list of this me...
read more
C#
CSharp-method
CSharp DateTime Struct
DateTime.GetHashCode() Method in C#
Last Updated: 11 July 2025
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 signed integer hash cod...
read more
C#
CSharp-method
CSharp DateTime Struct
DateTime.ToUniversalTime() Method in C#
Last Updated: 11 July 2025
This method is used to convert the value of the current DateTime object to Coordinated Universal Time (UTC).Syntax: public DateTime ToUniversalTime ();Return Value: This m...
read more
C#
CSharp-method
CSharp DateTime Struct
DateTime.ToShortDateString() Method in C#
Last Updated: 11 July 2025
This method is used to convert the value of the current DateTime object to its equivalent short date string representation.Syntax: public string ToShortDateString ();Retur...
read more
C#
CSharp-method
CSharp DateTime Struct
1
2
3