Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
Web Technologies
39.4k+ articles
DSA
22.4k+ articles
Python
20.2k+ articles
Experiences
17k+ articles
Interview Experiences
13.8k+ articles
JavaScript
11.6k+ articles
School Learning
11.6k+ articles
Java
10.4k+ articles
C#
1.8k+ articles
CSharp-method
680+ articles
CSharp DateTime Struct
35 posts
Popular Articles
Recent Articles
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 a
...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
...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
...read more
C#
CSharp-method
CSharp DateTime Struct
Similar Topics
Web Technologies
39.4k+ articles
DSA
22.4k+ articles
Python
20.2k+ articles
Experiences
17k+ articles
Interview Experiences
13.8k+ articles
JavaScript
11.6k+ articles
School Learning
11.6k+ articles
Java
10.4k+ articles
C#
1.8k+ articles
CSharp-method
680+ articles
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 ToUniver
...read more
C#
CSharp-method
CSharp DateTime Struct
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 st
...read more
C#
CSharp-method
CSharp DateTime Struct
DateTime.DaysInMonth() Method in C#
Last Updated: 22 January 2019
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 o
...read more
C#
CSharp-method
CSharp DateTime Struct
DateTime.CompareTo() Method in C#
Last Updated: 22 January 2019
This method is used to compare the value of this instance to a specified DateTime value and indicates whether this instance is earlier than,
...read more
C#
CSharp-method
CSharp DateTime Struct
DateTime.Compare() Method in C#
Last Updated: 22 January 2019
This method is used to compare two instances of DateTime and returns an integer that indicates whether the first instance is earlier than, t
...read more
C#
CSharp-method
CSharp DateTime Struct
DateTime.AddYears() Method in C#
Last Updated: 21 January 2019
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 A
...read more
C#
CSharp-method
CSharp DateTime Struct
DateTime.AddHours() Method in C#
Last Updated: 21 January 2019
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 Ad
...read more
C#
CSharp-method
CSharp DateTime Struct
DateTime.AddDays() Method in C#
Last Updated: 21 January 2019
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 Add
...read more
C#
CSharp-method
CSharp DateTime Struct
DateTime.AddSeconds() Method in C#
Last Updated: 18 January 2019
This method is used to return a new DateTime that adds the specified number of seconds to the value of this instance.Syntax:public DateTime
...read more
C#
CSharp-method
CSharp DateTime Struct
DateTime.AddMinutes() Method in C#
Last Updated: 18 January 2019
This method is used to return a new DateTime that adds the specified number of minutes to the value of this instance.Syntax:public DateTime
...read more
C#
CSharp-method
CSharp DateTime Struct
DateTime.AddMonths() Method in C#
Last Updated: 18 January 2019
This method is used to return a new DateTime that adds the specified number of months to the value of this instance.Syntax:public DateTime A
...read more
C#
CSharp-method
CSharp DateTime Struct
DateTime.Add() Method in C#
Last Updated: 18 January 2019
This method is used to return a new DateTime that adds the value of the specified TimeSpan to the value of this instance.Syntax:public DateT
...read more
C#
CSharp-method
CSharp DateTime Struct
1
2
3
>>
Last
1
2
3
>>
Last
1
2
3
>>
Last
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 !