Index: Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocument.cs
===================================================================
--- Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocument.cs	(revision 1122)
+++ Scheduling/trunk/cs/bsdx0200GUISourceCode/CGDocument.cs	(revision 1123)
@@ -338,4 +338,6 @@
             {
                 //Create new Document
+                this.SelectedDate = dDate.Date;
+
                 m_ScheduleType = (m_sResourcesArray.Count == 1) ? ScheduleType.Resource : ScheduleType.Clinic;
                 bool bRet = false;
Index: Scheduling/trunk/cs/bsdx0200GUISourceCode/CalendarGrid.cs
===================================================================
--- Scheduling/trunk/cs/bsdx0200GUISourceCode/CalendarGrid.cs	(revision 1122)
+++ Scheduling/trunk/cs/bsdx0200GUISourceCode/CalendarGrid.cs	(revision 1123)
@@ -734,4 +734,13 @@
         }
 
+        /// <summary>
+        /// Translates a StartTime into a Cell, for coloring
+        /// </summary>
+        /// <param name="dDate"></param>
+        /// <param name="nRow"></param>
+        /// <param name="nCol"></param>
+        /// <param name="bStartCell"></param>
+        /// <param name="sResource"></param>
+        /// <returns></returns>
         public bool GetCellFromTime(DateTime dDate, ref int nRow, ref int nCol, bool bStartCell, string sResource)
         {
@@ -1421,5 +1430,6 @@
             set
             {
-                this.m_dtStart = value;
+                //this.m_dtStart = value;
+                this.m_dtStart = value.Date; // only date portion!!!//smh
             }
         }
Index: Scheduling/trunk/cs/bsdx0200GUISourceCode/ClinicalScheduling.csproj.user
===================================================================
--- Scheduling/trunk/cs/bsdx0200GUISourceCode/ClinicalScheduling.csproj.user	(revision 1122)
+++ Scheduling/trunk/cs/bsdx0200GUISourceCode/ClinicalScheduling.csproj.user	(revision 1123)
@@ -37,6 +37,5 @@
     </RemoteDebugMachine>
     <StartAction>Project</StartAction>
-    <StartArguments>
-    </StartArguments>
+    <StartArguments>/s=172.16.16.108 /p=9250 /a=BASMA.ALDWAIRI /v=SELEN.123 /culture=ar-JO</StartArguments>
     <StartPage>
     </StartPage>
Index: Scheduling/trunk/cs/bsdx0200GUISourceCode/DApptSearch.cs
===================================================================
--- Scheduling/trunk/cs/bsdx0200GUISourceCode/DApptSearch.cs	(revision 1122)
+++ Scheduling/trunk/cs/bsdx0200GUISourceCode/DApptSearch.cs	(revision 1123)
@@ -245,5 +245,5 @@
 
 				//End
-				this.m_dEnd = this.dtEnd.Value;
+                this.m_dEnd = this.dtEnd.Value;
 			}		
 		}
@@ -727,5 +727,7 @@
             //Get Availabilities and Appointments from the DB
             //NB: m_sAmpm and m_sWeekDays don't have an effect on the M side side right now
-			string sSearchInfo = "1|" + m_sAmpm + "|" + m_sWeekDays;
+            m_dStart = m_dStart.Date; // move to 1200
+            m_dEnd = m_dEnd.Date.AddHours(23).AddMinutes(59).AddSeconds(59); //move to 235959
+            string sSearchInfo = "1|" + m_sAmpm + "|" + m_sWeekDays;
 			DataTable m_availTable = CGSchedLib.CreateAvailabilitySchedule(m_DocManager, m_alResources, m_dStart, m_dEnd, m_alAccessTypes, ScheduleType.Resource, sSearchInfo);
             DataTable m_apptTable = CGSchedLib.CreateAppointmentSchedule(m_DocManager, m_alResources, m_dStart, m_dEnd);
