Abhineet Srivastava

Abhineet Srivastava

  • NA
  • 890
  • 94.2k

Date Formate Issue

Jul 30 2013 5:57 AM
Currently,I am dynamically creating username like this-

 string initial = txtFirstName.Text.Trim().Substring(0, 1);
        string lastName = txtLastName.Text.Trim();
        string datePart = DateTime.Now.ToString("yyMMdd");
        string userName = initial + lastName + datePart;


But now,Client is aking for DDHHMM Formate.

Anyone have idea about this?


Thanks! 

Answers (4)