Skip to content
geeksforgeeks
  • 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
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
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
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
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
Lightbox