Skip to content

Commit cc338b3

Browse files
committed
Mw exercise - cultural date formatting
1 parent e361ff5 commit cc338b3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Instructions/Labs/LAB_AK_03_develop_code_features.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ Use the following steps to complete this section of the exercise:
698698
}
699699
else
700700
{
701-
Console.WriteLine($"\"{book.Title}\" is on loan to another patron. The return due date is {loan.DueDate.ToString("d", CultureInfo.InvariantCulture)}.");
701+
Console.WriteLine($"\"{book.Title}\" is on loan to another patron. The return due date is {loan.DueDate.ToString()}.");
702702
}
703703
704704
return ConsoleState.PatronDetails;
@@ -721,7 +721,9 @@ Use the following steps to complete this section of the exercise:
721721
722722
Always review GitHub Copilot suggestions before accepting updates.
723723
724-
If you're unsure, you can accept changes and then ask GitHub Copilot for an explanation. You can revert the edits if you don't like the changes.
724+
If you're unsure about the suggested updates, you can accept changes and then ask GitHub Copilot for an explanation. You can revert the edits if you decide against the updates.
725+
726+
> **NOTE**: If GitHub Copilot suggests formatting dates using culture-specific formats, you may need to add the following using statement to the ConsoleApp.cs file: `using System.Globalization;`
725727
726728
1. Ensure that you've accepted updates in both the ConsoleApp.cs and Program.cs files.
727729

0 commit comments

Comments
 (0)