Results 1 to 2 of 2

Thread: DateTime...

  1. #1
    Join Date
    Dec 1969

    Default DateTime...

    Hi all,<BR><BR>I want to be able to display the number of years an employee has been with the company. So I have the start date and I want to subtract it from the current date, and then format the result in Years.<BR><BR>Now it was easily done in VBScript, but I am having problems understanding articles on the web relating this to VB.Net.<BR><BR>I would be gratefull if someone could point me in the right direction.<BR><BR>thanks in advance,<BR><BR><BR>KS

  2. #2
    Join Date
    Dec 1969

    Default RE: DateTime...

    DateDiff("yyyy", "1/1/1997", "1,1,2002")<BR><BR>try that, that will return 5<BR><BR>Joe

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts