I have date field in database with 'datetimeoffset(7)'. It looks like
2021-09-30 02:00:31.3000000 +00:00.
As I understand it uses this structure:
YYYY-MM-DD hh:mm:ss[.nnnnnnn] [{+|-}hh:mm]
I've tried this but "Now" is underlined :
var currentDate = DateTimeOffset.Now("YYYY-MM-DD hh:mm:ss[.nnnnnnn] [{+|-}hh:mm]");
How can I get current date with this date structure?