Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
How to count the number of years between two dates
ma ouml
Jun 12 2017 5:29 PM
220
Reply
Hi friends,
I will rest my question because I did not turn the good answer
I want to calculate the number of years between start date and end date in crystal report
I have tested many functions in crystal report like this one DateDiff ("yyyy", {decompte.Date_demarrage}, {decompte.Date_fin}): in case the number of years = 1 it shows me 1.00
In case of the number of years <1 it shows me for example 260
I do not want it like that I want when the number of years == 1 shows me 1
When the number is less than 1 it shows me 1 and so on
I will be very happy if I find someone who can help me
And thanks in advance friends
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
how to calculate numbers of years in crystalreport
how to use active reports in asp.net web