Open paviano opened 1 year ago
I've used a DateOnly struct,
Would it work with DateTime
(where the time-component is left blank) work too?
Nope, It wont. You've to provide a System.DateOnly.
You have the System.DateOnly only if you're using .NET6+; if you're using it you can simply DateOnly.FromDateTime(yourDateTime);
Hello Dears, I've just wrote a little code to handle the Date Type inside the Siemens PLC (tested on Siemens 1515). Unfortunatly, I've used a DateOnly struct, that's available only from .NET 6+.