I am working in instute site in which i allocate batches for faculity i want that a batch which is running between particular dates no other batch is scheduled at that period.
I have used between query for start date between start and end date in database.But not getting proper validation.
Please revert me back
thanks & regards
Abhishek
Guest UserPosted Jan 22, 2009, 10:58 AM
Niradhip ChakrabortyPosted Jan 21, 2009, 4:53 PM
I am selecting from date and to date from a dropdown list.
Syntax should goes like this:
select * from Transactionlogs where Convert(datetime,convert(varchar,tlg_dtm_Datetime,101),101) between Convert(datetime,convert(varchar,'" + dtpFromdate.Text.ToString() + "',101),101) and Convert(datetime,convert(varchar,'" + dtpToDate.Text.ToString() + "',101),101)";
Guest UserPosted Jan 21, 2009, 11:02 AM