Results 1 to 2 of 2

Thread: Getdate Function

  1. #1
    Join Date
    Nov 2002
    Posts
    3

    Getdate Function

    I will like to use the getdate function
    only to receive part of the date:

    eg. 2002-11-13.

    I cannot use the substring function because it's not valid for datetime datatypes.

    Any ideas or suggestions.

    Thanks, Vic

  2. #2
    Join Date
    Oct 2002
    Posts
    42
    Look up CONVERT in books on line.

    EG

    select convert(varchar(10),getdate(),103)

Posting Permissions

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