For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > September 2004 > Convert .usri3_acct_expires into Date









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Convert .usri3_acct_expires into Date
Dancan

2004-09-30, 3:55 pm

I read Properties from User....
The acct_expires is an integer?
How convert?


Ken Halter

2004-09-30, 3:55 pm

Dancan wrote:
> I read Properties from User....
> The acct_expires is an integer?
> How convert?


If it's truly an Integer, it's most likely an offset from a specific
date. If you have the base date, you can use DateAdd to find out which
date that property is referring to. If it's a Long, it still might be an
offset but you should be able to use DateSerial to get the actual date.

--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
Please keep all discussions in the groups..
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com