Results 1 to 3 of 3

Thread: [RESOLVED] Get date and time

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2005
    Posts
    150

    Resolved [RESOLVED] Get date and time

    How do I get the current date and time?

  2. #2
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: Get date and time

    VB Code:
    1. Debug.Print Date & " " & Time
    2. Debug.Print Now

  3. #3
    Frenzied Member cssriraman's Avatar
    Join Date
    Jun 2005
    Posts
    1,465

    Re: Get date and time

    You can use the format functions to get the date and time as per your format. for example,
    VB Code:
    1. Debug.Print Format(Now,"DD-MMM-YYYY HH:mm")'will give you 13-Apr-2006 01:12

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