satya repaka

satya repaka

  • NA
  • 47
  • 12.9k

Regarding string.Format in C#

Feb 13 2016 6:04 AM
strEmailBody = string.Format(emailBody, position, NoOfPostion, Convert.ToDateTime(HireByDate).ToString("dd'/'MM'/'yyyy"));  ----  this is the code in C#
 
Hi,<BR/><BR/> Following requisition is pending for your approval.<BR/><BR/>To Submit your feedback {0}<BR/>Position : {1}<BR/>No.of Positions : {2} <BR/>Hire by Date : {3}<BR/>
 
I am getting the error as "

Index (zero based) must be greater than or equal to zero and less than the size of the argument list

Kindly resolve as early as possible. 
 

Answers (1)