String format

HI ,

Could you please explain the following

String.Format(“Hello {0} {1:MMMM yyyy}”, world, Now)

why {0} is used? what is represents?
what is MMMM yyyy used for?

{0} is to print “world” and {1:MMMM yyyy} will print the date in the format of month followed by the year.

In the statement from above, “Now” is a keyword which is used to print system date and time in formats like above.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.