Registry Value for Date

DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Registry Value for Date

  1. #1
    Join Date
    Oct 2006

    Registry Value for Date

    I am using VB 6.0 with Visual Studio Installer to install an Application.
    During the Installation I have the option of writing Keys/Values to the Registry.

    It appears that Value types are

    a. String
    b. Binary
    c. DWORD (integer)

    I want to enter a Registry value that represents the Current Date (Date of Installation).
    How do I do it?

  2. #2
    Join Date
    Dec 2003
    South Carolina

    Convert Date to String

    You will need to store the Date value as a String type in the Registry; there are no Registry objects that directly store a date.
    Stephen H. Stubbs
    Software Systems Engineer
    Smith Engineering, LLC

  3. #3
    Join Date
    Nov 2003
    Portland, OR
    You don't have to store the date as a string, although you certainly may. You may also encode it in a binary format and store the raw bytes. This requires more effort to code, but makes it more difficult for your users to change the date.
    Phil Weber

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. Visual Installer removing registry entries
    By AndrewH in forum VB Classic
    Replies: 0
    Last Post: 04-20-2006, 05:06 AM
  2. Replies: 4
    Last Post: 03-16-2006, 05:23 PM
  3. Writing in HKEY_LOCAL_MACHINE...Access is denied
    By Martin in forum VB Classic
    Replies: 22
    Last Post: 12-03-2001, 03:53 AM
  4. Registry? INI Files? What's In Store With .NET?
    By Dave Keighan in forum .NET
    Replies: 20
    Last Post: 07-08-2001, 07:40 PM
  5. Re: ASP and the Registry
    By Hans in forum ASP.NET
    Replies: 1
    Last Post: 06-29-2000, 11:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center