Converting a Last Logon Time Stamp to the Date format is facilitated by a programming language, such as Microsoft Visual C#. The Last Logon Time Stamp is a data type that holds information pertaining to when a user last logged on to a system, and is used for audit trails. To use it as a Date type, it first needs to be converted.
- Skill level:
- Moderately Challenging
Other People Are Reading
Things you need
- Windows computer
- Programming language pre-installed
Log on to the Windows computer on which your programming tool is installed.
Open the programming tool; for example, click "Start," then "Programs," then click "Microsoft Visual C#."
Open your project; for example, click "File," "Open," then double-click the project's name.
Scroll down to the line of code you wish to convert, and enter the following: "DateTime dt;dt = Convert.ToDateTime(myDateTimeString)." This converts a string data type (which the Last Login Time belongs to) and converts it to the DateTime data format.
Click "Debug," then "Start" to test the code.
- 20 of the funniest online reviews ever
- 14 Biggest lies people tell in online dating sites
- Hilarious things Google thinks you're trying to search for