Results 1 to 4 of 4

Thread: [RESOLVED] Get the current date

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2006
    Location
    Paris
    Posts
    301

    Resolved [RESOLVED] Get the current date

    Hi
    I need to obtain the current date but I don't like to use Now because
    it will show the long form including hours ,minutes and seconds...
    I just want the ordinary date : dd/mm/yyyy
    Any ideas ?!
    Thanks Horazio.

  2. #2
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: Get the current date

    Try date or use the format command
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Get the current date

    Code:
    Dim strToday As String
    strToday = Format(Now, "dd/mm/yyyy")

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2006
    Location
    Paris
    Posts
    301

    Re: [RESOLVED] Get the current date

    Yeah! This is what I was looking for.
    Thankyou.

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