Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Python
21.3K+ articles
Experiences
16.6K+ articles
Interview Experiences
14.2K+ articles
JavaScript
12.2K+ articles
School Learning
11.5K+ articles
Java
10.8K+ articles
C#
1.9K+ articles
CSharp-method
701+ articles
CSharp DateTime Struct
35 posts
Recent Articles
Popular Articles
DateTime.ToShortDateString() Method in C#
Last Updated: 30 January 2019
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
DateTime.ToString() Method in C# | Set – 1
Last Updated: 27 December 2021
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.ToUniversalTime() Method in C#
Last Updated: 04 February 2019
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.GetHashCode() Method in C#
Last Updated: 04 February 2019
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.GetTypeCode() Method in C#
Last Updated: 05 February 2019
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.IsDaylightSavingTime() Method in C#
Last Updated: 06 February 2019
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.SpecifyKind() Method in C#
Last Updated: 06 February 2019
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.Subtract() Method in C#
Last Updated: 10 February 2019
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.ToBinary() Method in C#
Last Updated: 07 February 2019
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.ToFileTime() Method in C#
Last Updated: 10 February 2019
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.ToFileTimeUtc() Method in C#
Last Updated: 10 February 2019
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.ToLocalTime() Method in C#
Last Updated: 11 February 2019
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.ToLongDateString() Method in C#
Last Updated: 11 February 2019
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.ToLongTimeString() Method in C#
Last Updated: 11 February 2019
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.ToOADate() Method in C#
Last Updated: 13 February 2019
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
1
2
3
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !