Index: Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocument.cs
===================================================================
--- Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocument.cs	(revision 866)
+++ Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocument.cs	(revision 868)
@@ -666,7 +666,8 @@
 			DateTime OldStartDay = m_dStartDate;
 			DateTime OldEndDay = m_dEndDate;
-			int nWeekDay = (int) SelectedDate.DayOfWeek; //0 == Sunday
-
-			int nOff = 1;
+            int nStartWeekDay = (int)System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.FirstDayOfWeek;
+            int nWeekDay = (int) SelectedDate.DayOfWeek; //0 == Sunday
+
+			int nOff = (nStartWeekDay + 1) % 7;
 			TimeSpan ts = new TimeSpan(nWeekDay - nOff,0,0,0); //d,h,m,s
 
Index: Scheduling/trunk/cs/bsdx0200GUISourceCode/DPatientLookup.cs
===================================================================
--- Scheduling/trunk/cs/bsdx0200GUISourceCode/DPatientLookup.cs	(revision 866)
+++ Scheduling/trunk/cs/bsdx0200GUISourceCode/DPatientLookup.cs	(revision 868)
@@ -168,5 +168,5 @@
 		private string				m_sPatientIEN;
 		private string				m_sPatientDOB;
-		private string				m_sPatientSSN;
+		private string				m_sPatientPID;
 
 		#endregion //Fields
@@ -229,5 +229,5 @@
 					this.m_sPatientHRN = r["HRN"].ToString();
 					this.m_sPatientIEN = r["IEN"].ToString();
-					this.m_sPatientSSN = r["SSN"].ToString();
+					this.m_sPatientPID = r["PID"].ToString();
 					this.cmdOK.Enabled = true;
 					this.AcceptButton = cmdOK;
@@ -241,8 +241,8 @@
 					ListViewItem lv = new ListViewItem(sPat);
 					lv.SubItems.Add(r["HRN"].ToString());
-					lv.SubItems.Add(r["SSN"].ToString());
+					lv.SubItems.Add(r["PID"].ToString());
 					DateTime d = Convert.ToDateTime(r["DOB"]);
-					string sFormat = "MM/dd/yyyy";
-					string sDob = d.ToString(sFormat);
+					string sFormat = System.Globalization.DateTimeFormatInfo.CurrentInfo.ShortDatePattern;
+                    string sDob = d.ToString(sFormat);
 					lv.SubItems.Add(sDob);
 					lv.SubItems.Add((r["IEN"].ToString()));
@@ -254,5 +254,5 @@
 				lvwPatients.Columns.Add("Name", w, HorizontalAlignment.Left);
 				lvwPatients.Columns.Add("HRN", w, HorizontalAlignment.Left);
-				lvwPatients.Columns.Add("SSN", w, HorizontalAlignment.Left);
+				lvwPatients.Columns.Add("PID", w, HorizontalAlignment.Left);
 				lvwPatients.Columns.Add("DOB",w, HorizontalAlignment.Left);
 
@@ -292,5 +292,5 @@
 			m_sPatientHRN = v.SubItems[1].Text;
 			m_sPatientDOB = v.SubItems[3].Text;
-			m_sPatientSSN = v.SubItems[2].Text;
+			m_sPatientPID = v.SubItems[2].Text;
 			this.txtSearch.Text = m_sPatientName;
 			this.cmdOK.Enabled = true;
