Javatpoint Logo
Javatpoint Logo

C# String Format()

The C# Format() method is used to replace one or more format items in the specified string with the string representation of a specified object.

Signature

Parameters

first : it is a string type argument.

second: it is object type argument.

Return

It returns a formatted string.


C# String Format() Method Example

Output:

Saturday, December 17, 2016





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA