How to Convert Last Logon Time Stamp to Date

Written by matthew chorlton
  • Share
  • Tweet
  • Share
  • Email

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

Show MoreHide


  1. 1

    Log on to the Windows computer on which your programming tool is installed.

  2. 2

    Open the programming tool; for example, click "Start," then "Programs," then click "Microsoft Visual C#."

  3. 3

    Open your project; for example, click "File," "Open," then double-click the project's name.

  4. 4

    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.

  5. 5

    Click "Debug," then "Start" to test the code.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.