https://github.com/karenpayneoregon/working-with-datetime
Datetime, DateTimeOffset, TimeSpan starter code samples
https://github.com/karenpayneoregon/working-with-datetime
csharp-core datetime datetimeoffset extension-methods timespan
Last synced: 8 months ago
JSON representation
Datetime, DateTimeOffset, TimeSpan starter code samples
- Host: GitHub
- URL: https://github.com/karenpayneoregon/working-with-datetime
- Owner: karenpayneoregon
- Created: 2021-11-15T23:30:08.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-01T13:56:33.000Z (over 3 years ago)
- Last Synced: 2025-04-04T18:52:00.782Z (about 1 year ago)
- Topics: csharp-core, datetime, datetimeoffset, extension-methods, timespan
- Language: C#
- Homepage:
- Size: 293 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README

Various code samples for teaching using ~~Visual Studio 2019, .NET Core, C#9~~ Visual Studio 2022, .NET Core 7.
There are basic, intermediate and advance level code samples. Suggest examining the code, run the application then go back and study the code for learning purposes.
:green_circle: Make sure to review [Microsoft docs](https://docs.microsoft.com/en-us/dotnet/api/system.datetime.add?view=net-5.0) for common DateTime methods and [DateTimeOffset](https://docs.microsoft.com/en-us/dotnet/api/system.datetimeoffset?view=net-5.0)
:green_circle: [Custom date and time format strings](https://docs.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings)

# You may also like
- [SQL-Server: Exploration of datetime2(7) precision](https://github.com/karenpayneoregon/sql-server-datetime2)
- [SQL-Server: Computed columns](https://github.com/karenpayneoregon/sql-server-computed-columns)
- Focus on projects `EntityFrameworkCore` and `SqlProviders` which work with dates
- [Working with DateOnly and TimeOnly (C#)](https://github.com/karenpayneoregon/dataonly-timeonly)