Date and Time in .NET
Learn how to master the art of working with date and time in .NET; a topic commonly taken for granted, but often the cause of unexpected errors. This course will make you comfortable working with dates and times in any .NET project!
What you'll learn
Ever had issues caused by date and times with .NET within your applications? In this course, Date and Time in .NET, you will master the art of parsing dates and times and how to handle ambiguity using common standards that usually get overlooked and cause unexpected errors. First, you will learn how to handle relative time and time periods, such as calculating the time difference between two periods. Next, you will discover how time zones impact applications, how to properly handle them, and what to consider when parsing dates which don’t include time zone information. Finally, you will explore how to avoid problems when working with common date and time scenarios in .NET. When you are finished with this course, you will have the skills and knowledge to set up your own applications and parse complex date and time situations whether you’re on Windows, Mac, or Linux!
Table of contents
- Introduction 9m
- Version Check 1m
- Date or Time Ambiguity and Working with DateTime 10m
- Converting Between Time Zones 5m
- Using DateTimeOffset 6m
- Simple DateTime Parsing 9m
- Formatting Dates and Times for ISO 8601 4m
- Working with UTC 8m
- DateOnly and TimeOnly 2m
- Using the TimeProvider 3m
- Using NodaTime 4m
- Summary 4m