Hi all.
In the process of converting VB6 code to .NET, I have run into a date problem. What I want is the DATE value as a number.
For example, in VB6 CLng(Now) [for today] returns 41262. [Tomorrow it will be 41263.]
Any help would be greatly appreciated.
Alternatively, is there a way to get a unique file name? The DATE as LONG requirement is simply part of a function that converts the current date (as a number) to a 3 digit base 36 number and then the time [hhmmss] to a 4 digit base 36 number giving a unique 7 character file name that will never be repeated past the second. [Base 36 --> 0-9 & A-Z, hence you get results like VM82KM4.]
In the process of converting VB6 code to .NET, I have run into a date problem. What I want is the DATE value as a number.
For example, in VB6 CLng(Now) [for today] returns 41262. [Tomorrow it will be 41263.]
Any help would be greatly appreciated.
Alternatively, is there a way to get a unique file name? The DATE as LONG requirement is simply part of a function that converts the current date (as a number) to a 3 digit base 36 number and then the time [hhmmss] to a 4 digit base 36 number giving a unique 7 character file name that will never be repeated past the second. [Base 36 --> 0-9 & A-Z, hence you get results like VM82KM4.]