Skip to content

Commit

Permalink
fix dob issue
Browse files Browse the repository at this point in the history
fix dob issue
  • Loading branch information
yeojc committed Oct 20, 2017
1 parent 7787836 commit 5fbd1e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Solution/PHS.Business/Extensions/HtmlExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ public static string GetTempRegistrationFormValue(this HtmlHelper helper, Templa
break;

case TemplateFieldType.BIRTHDAYPICKER:
var birthdayValue = participant.DateOfBirth.Value.ToString();
var birthdayValue = participant.DateOfBirth.Value.ToString("dd/M/yyyy");

if (!string.IsNullOrEmpty(birthdayValue))
{
Expand Down
2 changes: 1 addition & 1 deletion Solution/PHS.Web/Controllers/FormAccessController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ public ActionResult GenerateLabel()
doc.ReplaceText("<<EVENT>>", result.Event.Title + " " + result.Event.Venue);
doc.ReplaceText("<<CURRENT_DATE>>", DateTime.Now.ToString("dd/MM/yyyy HH:mm"));

doc.ReplaceText("<<NAME>>", UtilityHelper.GetString(result.FullName).Limit(100));
doc.ReplaceText("<<NAME>>", UtilityHelper.GetString(result.FullName).Limit(35));
doc.ReplaceText("<<NRIC>>", UtilityHelper.GetString(result.Nric));
doc.ReplaceText("<<GENDER>>", UtilityHelper.GetString(result.Gender));
doc.ReplaceText("<<DOB>>", UtilityHelper.GetString(result.DateOfBirth));
Expand Down

0 comments on commit 5fbd1e3

Please sign in to comment.