So, I'm developing an API that takes an object which includes datetime properties(ISO 8601). However, how forgiving should you be when parsing someth ...
So, I'm developing an API that takes an object which includes datetime properties(ISO 8601). However, how forgiving should you be when parsing someth ...
My app works with a public calendar via CalDAV protocol (let's call it CalDAV calendar) which returns events in iCalendar format. One user started to ...
I have ASP.NET Core project that needs to be migrated from .NET 6.0 to.NET 7.0 and it is using NodaTime. Is there a NodaTime that is compatible with . ...
If I have a string like "2020-12-15T12:10:00.202-08:00" how can I parse this into NodaTime.LocalDateTime or ZonedDateTime directly, rather than doing ...
Using c# and using NodaTime.Tzdb My target is to get the zone Id for my current timezone. As per https://nodatime.org/TimeZones my current zone Id sh ...
I want to use the NodaTime library to convert the date from one timezone to another like this. The above code works perfectly fine for me, But now ...
I am using the code mentioned on this link. I didn't understand the purpose of InZoneLeniently, Could someone explain by any real-time example when it ...
I am using ASP.NET Core WebAPI , .NET 6, EF Core 6, PostgreSQL 14.5 , Visual Studio 2022 Community Edition. My command using System; using System. ...
some times with the same query i get the error ' Can't cast database type timestamp without time zone to Instant' note: CreatedAt nodaTime in ...
I had this problem trying to pass an instant date in the body of a post http call. My API model: This is my Controller: JSON Body: Error ...
I often find myself working with databases with nullable date fields so other return something along the lines of select coalesce( t.dt, cast( '0001-0 ...
I'm trying to get the number of days in a month. So I have the following Now I just need the number of days in that LocalDateTime variable that I j ...
Date to convert : 12/10/2016 12:00:00 AM Time zone to convert : America/New_York This is my function to return offset of the date (dt) I provide. ...
Instant.FromUnixTimeSeconds(-100100000000).ToDateTimeUtc1 Once the date gets too ancient this doesn't work anymore, for example, BC dates. Is there ...
I have a Controller returning an object with a Nodatime Period property Interval: // Formatted { "id": "5d6c4def-26e1-4045-b34a-70f75e992be4", ...
How to configure NodaTime serialization for System.Text.Json in Blazor WASM .Net 6? In a WebApi you would do builder.Services.AddControllers().AddJson ...
A gas day is defined as a time range of 24 hours which starts at 5:00 UTC and ends at 5:00 UTC of the following day during the European standard time. ...
So I'm running into a rather odd issue here. I've got a PostgreSQL 14 server and I'm using the Npgsql Entity Framework Core provider to access it. If ...
I would like to look up a timezone based on an ISO region code or coordinates. I have a collection of data points with coordinates, county and region ...
I have the following message in C# code: I want to deserialize such messages from Kafka topic. However when deserializing types from NodaTime libra ...