Skip to content
Snippets Groups Projects
Commit fda84d10 authored by BigDude's avatar BigDude
Browse files

Date only ændring

parent 1b4247da
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,6 @@
public class SharedExperienceView
{
public string? Description { get; set; }
public required DateTime Date { get; set; }
public required DateOnly Date { get; set; }
}
}
......@@ -38,7 +38,7 @@ public static class ExtensionMethods
{
//SharedExperienceId = entity.SharedExperienceId,
Description = entity.Description,
Date = entity.Date.Date,
Date = new DateOnly(entity.Date.Year, entity.Date.Month, entity.Date.Day)
};
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment