C
C#2y ago
DayKnight

❔ DateTime Property [Answered]

public DateTime DateOfTime
{
get { return _DateOfTime; }
set { _DateOfTime = value; }
}


Student student1 = new Student(1, "Mike", "Scmith", 2003, 19);
public DateTime DateOfTime
{
get { return _DateOfTime; }
set { _DateOfTime = value; }
}


Student student1 = new Student(1, "Mike", "Scmith", 2003, 19);
What kind of input does DateTime expect?
5 Replies
ero
ero2y ago
a DateTime also just use an auto property
DayKnight
DayKnight2y ago
Auto property like this?
public string Student { get; set; }
public string Student { get; set; }
ero
ero2y ago
that, but for DateOfTime
DayKnight
DayKnight2y ago
Ah okay thanks 👍
Accord
Accord2y ago
✅ This post has been marked as answered! Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts