Results 1 to 3 of 3

Thread: Datum Variable

  1. #1
    Join Date
    Oct 2006
    Posts
    2

    Unanswered: Datum Variable

    Hi,

    how I can assign a date to a variable ???

    I have no idea ..... any smal tip ?

    thx

    thumb

  2. #2
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    you do not know this and it is time for mid terms. college gets more expensive and you get less out of it.

    Declare @MyVar datetime

    SET @MyVar = GETDATE()
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

  3. #3
    Join Date
    Oct 2006
    Posts
    2
    thanks for your answer and your time.

    my problem was

    DECLARE @geburtstag DATETIME

    SET @geburtstag = '23.07.1968'


    correctly is that

    DECLARE @geburtstag DATETIME

    SET @geburtstag = '23-07-1968'

    thx

    thumb

Posting Permissions

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