Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

Converting Now() to pure date

Discussion in 'Information Technology' started by Domac, Jul 28, 2006.

  1. Domac

    Domac
    Expand Collapse
    Guest

    Hi,

    What is the best way to convert return value of Now() function to pure Date
    (21.062006. 15:30 => 21.06.2006.)??


    Thanks!
    Domagoj
     
  2. Loading...

    Similar Threads Forum Date
    Jehovah's Witnesses Are Out And Converting! Blogs Jul 31, 2016
    Basic Questions about Converting to Sikhism Questions and Answers Nov 15, 2013
    Converting to Sikhism Hard Talk Aug 31, 2012
    Why are people converting to Sikhism? Sikh Sikhi Sikhism Jul 1, 2012
    Question About Converting To Sikhism For A Married Person Questions and Answers Jun 3, 2012

  3. SusanV

    SusanV
    Expand Collapse
    Guest

    Format(Now(),dd.mm.yyyy)

    --
    hth,
    SusanV


    "Domac" <dd@dd.cc> wrote in message
    news:%23PMW4FTlGHA.836@TK2MSFTNGP02.phx.gbl...
    > Hi,
    >
    > What is the best way to convert return value of Now() function to pure
    > Date (21.062006. 15:30 => 21.06.2006.)??
    >
    >
    > Thanks!
    > Domagoj
    >
     
  4. '69 Camaro

    '69 Camaro
    Expand Collapse
    Guest

    Hi, Domac.

    > What is the best way to convert return value of Now() function to pure
    > Date


    Instead of converting the value returned from the Now( ) function, you'd use
    the Date( ) function in your code. However, if you want to convert a
    Date/Time value that has already been stored in the table by using the
    Now( ) function, then use the DateValue( ) function. For example:

    SELECT IIF(ISNULL(SomeDate), NULL, DateValue(SomeDate)) AS TheDate
    FROM tblStuff;

    HTH.
    Gunny

    See http://www.QBuilt.com for all your database needs.
    See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
    http://www.Access.QBuilt.com/html/expert_contributors2.html for contact
    info.


    "Domac" <dd@dd.cc> wrote in message
    news:%23PMW4FTlGHA.836@TK2MSFTNGP02.phx.gbl...
    > Hi,
    >
    > What is the best way to convert return value of Now() function to pure
    > Date (21.062006. 15:30 => 21.06.2006.)??
    >
    >
    > Thanks!
    > Domagoj
    >
     
  5. Linc

    Linc
    Expand Collapse
    Guest

    I usually use Int(Now). Using Int() truncates the date to just date, no time
    stamp.


    "Domac" wrote:

    > Hi,
    >
    > What is the best way to convert return value of Now() function to pure Date
    > (21.062006. 15:30 => 21.06.2006.)??
    >
    >
    > Thanks!
    > Domagoj
    >
    >
    >
     
  6. Douglas J. Steele

    Douglas J. Steele
    Expand Collapse
    Guest

    DateValue is preferred to Int (Int doesn't work properly for dates prior to
    30 Dec, 1899)

    --
    Doug Steele, Microsoft Access MVP
    http://I.Am/DougSteele
    (no private e-mails, please)


    "Linc" <Linc@discussions.microsoft.com> wrote in message
    news:7776AFC9-A338-403F-9716-5C0ADAF3DC90@microsoft.com...
    >I usually use Int(Now). Using Int() truncates the date to just date, no
    >time
    > stamp.
    >
    >
    > "Domac" wrote:
    >
    >> Hi,
    >>
    >> What is the best way to convert return value of Now() function to pure
    >> Date
    >> (21.062006. 15:30 => 21.06.2006.)??
    >>
    >>
    >> Thanks!
    >> Domagoj
    >>
    >>
    >>
     

Share This Page