Step1 : Show OpenFileDialog OpenFileDialog strGetImage = new OpenFileDialog(); strGetImage.InitialDirectory = strDirectory; strGetImage.Filter = "Image Files(*.BMP;*.JPG;*.GIF)|*.BMP;*.JPG;*.GIF|All files (*.*)|*.*"; strGetImage.FilterIndex = 1; strGetImage.Multiselect = false; strGetImage.RestoreDirectory = true; DialogResult Result = strGetImage.ShowDialog(); Step2: After selecting the image convert the image into Bytes. if (Result == DialogResult.OK) ...
DayOfWeek ------------------ Returns the weekday index for date (1 = Sunday, 2 = Monday, …, 7 = Saturday). These index values correspond to the ODBC standard. Weekday ------------ 0 = Monday , 1 = Tuesday, 2 = Wednesday, ...... Sunday = 6). DayName ------------ Weekday name of the date.