✅ Converting string to DateTimeOffset
I know it's rather simple to do, but I just can't figure it out. In my database file, I'm pulling all the entries from the database and I'm trying to add the value to the list as the appropriate types that they are, however, I just cannot figure it out. The model is setup for the date to be a DateTimeOffset type. It's because the helper function that I'm going to write for when the user creates a new entry is to take the datetime widgets input and convert it to a MM/dd/yyyy format and as a string before saving to the database
1 Reply
The problem I'm getting with the code in the else statement is
'DateTimeOffset' does not contain a constructor that takes 3 arguments
nvm I got it