Results 1 to 10 of 10
  1. #1
    DrJohn is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2016
    Posts
    5

    Now Function Custom Format

    I would like to use the =Now() function but have it display the results as for example Wednesday, March 15, 2016 followed by a name



    Any suggestions.

    John

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    this help?

    ?format(date,"dddd, mmmm d yyyy")
    Tuesday, March 15 2016
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    DrJohn is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2016
    Posts
    5
    Are you suggesting:

    =Now(date,"dddd, mmmm d yyyy")

    That doesn't seem to work. The date needs to be dynamic - current date.

    Thanks John

  4. #4
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Where exactly are you displaying this (TextBox in a Form, TextBox in a Report, Calculated Field in a Query, etc)?
    You would just use the NOW() function, and apply a Custom Format to its display.

  5. #5
    DrJohn is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2016
    Posts
    5
    It is in the Page Footer of a Report. When I created the Report it automatically put =Now() in the footer and properly displays the current date.
    I want to change the format of that date. I gues my question is how do you apply a custom format to Now()

  6. #6
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    OK. So just switch the Report to Design View, select the Text Box that the date is appearing in, open up the Properties and change the Format value to the format you want to see (dddd, mmmm d yyyy or whatever format variation you want).

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Quote Originally Posted by DrJohn View Post
    Are you suggesting:

    =Now(date,"dddd, mmmm d yyyy")

    That doesn't seem to work. The date needs to be dynamic - current date.

    Thanks John

    No, I'm suggesting what I posted. The Now() function includes the time, the Date() function just the date.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  8. #8
    DrJohn is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2016
    Posts
    5
    Thank you. I had tried something similar but had some syntax errors.

  9. #9
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    No problem, and welcome to the site by the way.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  10. #10
    DrJohn is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2016
    Posts
    5
    To sum up, here's what worked:
    =Now()
    Properties Sheet/Format for the field
    dddd", "mmmm dd", "yyyy" FI. LastName"
    Produced
    Wednesday, March 16, 2016 FI. LastName

    Thanks again.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Setting Custom Field Format Property Problem
    By Weelmaa in forum Programming
    Replies: 2
    Last Post: 02-25-2012, 05:33 AM
  2. Custom Currency Format
    By Ichigo in forum Access
    Replies: 3
    Last Post: 04-26-2011, 03:34 AM
  3. Replies: 0
    Last Post: 03-17-2011, 09:57 AM
  4. Custom Data input mask or format?
    By RiverAnimal in forum Database Design
    Replies: 2
    Last Post: 12-06-2010, 09:58 AM
  5. Custom format for phone#
    By SmokingMan in forum Access
    Replies: 4
    Last Post: 08-02-2010, 10:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums