From 64edeb203befc7ab897ec2e80d92922e9572e59f Mon Sep 17 00:00:00 2001 From: caschick221 Date: Wed, 21 Feb 2024 13:11:24 -0500 Subject: [PATCH] made DOB format short in patients --- Louis'-Pharmacy_CNSA212-FP/frmPatient.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Louis'-Pharmacy_CNSA212-FP/frmPatient.cs b/Louis'-Pharmacy_CNSA212-FP/frmPatient.cs index 5008a09..157ec84 100644 --- a/Louis'-Pharmacy_CNSA212-FP/frmPatient.cs +++ b/Louis'-Pharmacy_CNSA212-FP/frmPatient.cs @@ -76,7 +76,8 @@ namespace Louis__Pharmacy_CNSA212_FP txtWeight.Text = ds.Tables[0].Rows[0]["lbs"].ToString(); txtHeightFt.Text = ds.Tables[0].Rows[0]["Height_feet"].ToString(); txtHeightIn.Text = ds.Tables[0].Rows[0]["Height_inches"].ToString(); - txtDOB.Text = ds.Tables[0].Rows[0]["DOB"].ToString(); + DateTime date = DateTime.Parse(ds.Tables[0].Rows[0]["DOB"].ToString()); + txtDOB.Text = date.ToString("d"); cboGender.Text = ds.Tables[0].Rows[0]["Gender"].ToString(); txtCity.Text = ds.Tables[0].Rows[0]["City"].ToString(); txtZip.Text = ds.Tables[0].Rows[0]["Zip"].ToString();