Skip to content

Commit

Permalink
Fix item completed date format string
Browse files Browse the repository at this point in the history
  • Loading branch information
Regenhardt committed Feb 22, 2024
1 parent b6df851 commit 0b9569a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Todo.Core/Model/TodoItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ public class TodoItem
public DateTime? Completed { get; set; }
public string? ListId { get; set; }

public override string ToString() => $"{Subject} - {Status} {(IsCompleted ? Completed?.ToString("yyyy-mm-dd") : string.Empty)}";
public override string ToString() => $"{Subject} - {Status} {(IsCompleted ? Completed?.ToString("yyyy-MM-dd") : string.Empty)}";
public string ToString(bool noStatus) => noStatus ? Subject : ToString();
}

0 comments on commit 0b9569a

Please sign in to comment.