Welcome to SPN

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

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

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
    >>
    >>
    >>
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page