An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

![img](assets/figure1.png)

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)

![img](assets/screenMain.png)

# 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)