C
C#3y 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
ero3y ago
a DateTime also just use an auto property
DayKnight
DayKnightOP3y ago
Auto property like this?
public string Student { get; set; }
public string Student { get; set; }
ero
ero3y ago
that, but for DateOfTime
DayKnight
DayKnightOP3y 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