Results 1 to 5 of 5

Thread: Get current Date and Time

  1. #1

    Thread Starter
    Fanatic Member LITHIA's Avatar
    Join Date
    Dec 2002
    Location
    UK, England
    Posts
    575

    Get current Date and Time

    Hey,

    I was expecting this question to be easily found, but i was really suprised to not see anything on this. Even a quick search of msdn didnt return any helpful results.

    Can anyone help me with some code to just get the current date and time? I wana get this and then put it in a text file.

    Thanks! Cya!

  2. #2
    Hyperactive Member mudfish's Avatar
    Join Date
    Feb 2004
    Location
    Chit Chat
    Posts
    353
    where I work we get it from sql with a query
    Mudfish AKA Bowfin
    I can spell "If" all day right, just a coder!


    "Always do sober what you said you'd do drunk. That will teach you to keep your mouth shut." -- Ernest Hemingway

    Member of the ECCC

  3. #3
    Addicted Member Hole-In-One's Avatar
    Join Date
    Mar 2003
    Location
    Minnesota
    Posts
    195
    Just use "Now.ToLongDateString"
    or "Now.ToLongTimeString"

  4. #4
    Junior Member
    Join Date
    Mar 2004
    Posts
    22
    Dim Getdate As DateTime
    Getdate = Now()

  5. #5

    Thread Starter
    Fanatic Member LITHIA's Avatar
    Join Date
    Dec 2002
    Location
    UK, England
    Posts
    575
    thanks, ill try it out when i get home

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width