title: How to combine StudentProfileID and Date Today as a customID on Create Method in C# MVC5
body: <p>How can I make a custom RegNo combining the StudentProfileID and DateToday?</p>
  
  <p>StudentProfileID- is the primary key automatically generated on Create Method
  <br> Date Today- format: 031415</p>
  
  <p>Sample Code of Create Method</p>
  
  <pre><code>public ActionResult Create([Bind(Include="StudentProfileID,RegNo,EnrollmentDate,LastName,FirstName,MiddleName,Address,ContactNo,MaritalStatus,Birthdate,Birthplace,Age,PositionRank,Years,PRC,SBOOK,MMAP,PPORT,SRC,TraineeType,EndorsedBy,EmergencyPerson,EmergencyAddress,EmergencyContactNo,EmergencyRelationship")] StudentProfile studentprofile)
      {
          if (ModelState.IsValid)
          {
              db.StudentProfile.Add(studentprofile);
              db.SaveChanges();
              return RedirectToAction("Index");
          }
  
          return View(studentprofile);
      }
  </code></pre>
  
  <p>I followed this article in creating the student profile
  <a href="http://www.codeproject.com/Tips/869986/CRUD-operation-with-Entity-Framework-Code-First" rel="nofollow">http://www.codeproject.com/Tips/869986/CRUD-operation-with-Entity-Framework-Code-First</a></p>
  
  <p>I'll appreciate the help. Thank you.</p>