title | description | ms.date | ms.topic | author | ms.author | manager | ms.subservice | dev_langs | |
---|---|---|---|---|---|---|---|---|---|
DateTime and TimeSpan completion with IntelliSense |
Use the IntelliSense menu to complete a DateTime and TimeSpan string literal and format string. |
07/31/2020 |
reference |
mikadumont |
midumont |
mijacobs |
general-ide |
|
This refactoring applies to:
- C#
What: DateTime and TimeSpan string literal and format string completion through IntelliSense menu.
When: You want to write a DateTime and TimeSpan string literal and format string. IntelliSense gives you basic completion and an explanation as to what each of the characters mean.
Why: Remembering DateTime formats is hard and IntelliSense can help you write it.
-
Place your cursor in the DateTime or TimeSpan format string.
-
Press Ctrl+Space to trigger the IntelliSense menu.
-
Select the character you would like to add.