From 313d6d21dcf75a83c5494a096fbcfeac4f53c46c Mon Sep 17 00:00:00 2001 From: Anjali Date: Mon, 26 Aug 2024 23:14:53 +0530 Subject: [PATCH] Fixed invalid day and month in StickyNotesDemo proj (#522) --- Sample Applications/StickyNotesDemo/MainWindow.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sample Applications/StickyNotesDemo/MainWindow.cs b/Sample Applications/StickyNotesDemo/MainWindow.cs index d7489200e..8fb42af8f 100644 --- a/Sample Applications/StickyNotesDemo/MainWindow.cs +++ b/Sample Applications/StickyNotesDemo/MainWindow.cs @@ -223,14 +223,14 @@ private void ExtractValues(out int contentIndicator, string line, out double hei var seconds = (int) double.Parse(token); tail = index + 1; - index = line.IndexOf('/', tail); + index = line.IndexOf('-', tail); token = line.Substring(tail, (index - tail)); - var month = int.Parse(token); + var day = int.Parse(token); tail = index + 1; - index = line.IndexOf('/', tail); + index = line.IndexOf('-', tail); token = line.Substring(tail, (index - tail)); - var day = int.Parse(token); + var month = int.Parse(token); tail = index + 1; index = line.IndexOf('|', tail);