Forget Code
  • Log in Sign Up
  • Log in
  • Sign Up
 

C#

Add a new snippet
Access Specifier6 ADO .Net3 Basics16 Collections1 Console1 Date Functions15 Delegates1 File7 Keywords2 LINQ1 Loops1 Math Snippets5 Memory Management1 Operators3 Reflection2 Regular Expressions3 String Functions18 String Snippets8 Threading1 Type Casting5

 
Converting string to datetime offset
Current Date and Time
Getting current date and time
Extracting day in a given date
Extracting month in a given date
Extracting year in a given date
Days in a month
Adding days to a date
Adding months to a date
Coordinated universal time
Extracting only date and suppressing time
Extracting only time and suppressing date
Extracting time from DateTime in hh:mm:ss format
Date and time of today
Subtracting months from a date
© Forget Code 2025
  • About
  • |
  • Feedback

    Feedback

  • |
  • Sitemap