dbmanalser84
Registered User.
- Local time
- Today, 01:15
- Joined
- Feb 26, 2008
- Messages
- 52
I have a form where I enter employees and the dates they've started working.
I used the following code and managed to display the days passed from the start date up until now:
What I want is to display not only the days passed but years months and days also. The data is to be displayed in a text field.
How do I do it?
Thnx.
I used the following code and managed to display the days passed from the start date up until now:
Code:
Dim pocetakRada As Date
Dim trajanjeOdnosa As Integer
pocetakRada = [dtePocetakRadnogOdnosa].Value
trajanjeOdnosa = DateDiff("d", pocetakRada, Now())
[Vrednost1].Value = trajanjeOdnosa
[dteRadniOdnosUUstanovi].Value = trajanjeOdnosa
What I want is to display not only the days passed but years months and days also. The data is to be displayed in a text field.
How do I do it?
Thnx.