From 0b9569a5fdf930da0b30f72419d5639f41cb2bff Mon Sep 17 00:00:00 2001 From: Marlon Regenhardt Date: Fri, 23 Feb 2024 00:35:30 +0100 Subject: [PATCH] Fix item completed date format string --- src/Todo.Core/Model/TodoItem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Todo.Core/Model/TodoItem.cs b/src/Todo.Core/Model/TodoItem.cs index c10ad19..d64fff9 100644 --- a/src/Todo.Core/Model/TodoItem.cs +++ b/src/Todo.Core/Model/TodoItem.cs @@ -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(); } \ No newline at end of file