Skip to content

No Format Placeholder or String Interpolation present to fetch the value of second argument - DateTime.now #1205

@adityatakharya

Description

@adityatakharya

URL

https://dotnet.microsoft.com/en-us/learn/dotnet/hello-world-tutorial/intro

Operating system

macos

More information about your system

No response

Description

The second line of code present on the page doesn't work because Console.WriteLine ignores the second argument as the first argument doesn't contain a placeholder like {0}.

dotnet --info

Hello, World!
Current time is:

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-tutorialsIssues related to getting started tutorialsneeds-triageIssues that haven't been triaged yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions