TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
asassin GB
NA
15
488
Display records between two dates including extra hours
Sep 14 2018 8:18 PM
i have sales system that has two shifts(day and night) i need to display records in ReportViewer filtered by shift to calculate sales of each shift(am using datetimepicker to select dates and comboBox to select the shift).
i have tried this:
private
void
shiftcomboBox_SelectedIndexChanged(
object
sender, EventArgs e)
{
this
.sellsTableAdapter.FillBy1(
this
.kafDataSet4.sells,
Convert.ToDateTime(dateTimePicker1.Value.ToShortDateString()),
Convert.ToDateTime(dateTimePicker2.Value.ToShortDateString()),
Convert.ToString(comboBox1.SelectedItem));
this
.reportViewer1.RefreshReport();
}
i passed the dates from datetimepickers and it works but my problem is the second shift ends after midnight so that extra hours will not be included in the report so that gives wrong calculation of mony.
Reply
Answers (
1
)
Generate QR Code
qr code in crystal report