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




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA