Home » C# String Format() method

C# String Format() method

by Online Tutorials Library

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 

You may also like