0

Dear Bodies!
I am developing a Cold Store Managemen system. I need to count days according to dates.for example 5 ton petato put in cold store room on 01/12/2013 .when i exit this 5 ton peteto on 10/12/2013 system should show me that 10 days i have to charge ?

2
Contributors
5
Replies
7
Views
3 Years
Discussion Span
Last Post by zebnoon
0

Hello!

Please elaborate as to which programming language you are using. There are many ways to count the number of days between two dates, but we can not give any if we don't know your desired language!

0

I am developing a Cold Store Managemen system in VB6. I need to count days according to dates.for example 5 ton petato put in cold store room on 01/12/2013 .when i exit this 5 ton peteto on 10/12/2013 system should show me that 10 days i have to charge ?

0

You need to look into using the DateDiff Function.

You will receive the day value by passing in the day interval and your two dates.

DateDiff(DateInterval.Day,dtStart,Now()) 'Will return number of days between now and the start date

You can place this function in your check-out code. Just pull in the check-in date and pass in the current date, et viola!

Edited by Begginnerdev

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.