Results 1 to 4 of 4
  1. #1
    templeowls is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2019
    Posts
    305

    Suggestions for how to remove 'seconds' from date field in report

    I have a date field in a report where the raw format is 'mm.dd.yyyy hh.mm.ss'.

    All I am looking to do is remove the 'seconds' component from the date (i.e. 'mm.dd.yyyy hh.mm').

    But I can't seem to find a formatting style to do that. Either its all or reduced down to just the mm.dd.yyyy

    Any suggestions?

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,411
    Would have thought

    mm.dd.yyyy hh.mm

    would work although usual structure is

    mm/dd/yyyy hh:nn

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    Either:

    1. in textbox Format property: mm\.dd\.yyyy hh\.nn

    2. expression in textbox ControlSource: Format([field], "mm.dd.yyyy hh.nn")
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    templeowls is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2019
    Posts
    305
    Thank you both. I used mm/dd/yyyy hh:nn in the format box and it worked!

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

Similar Threads

  1. Replies: 7
    Last Post: 10-22-2022, 10:28 AM
  2. How to remove the timestamp from date field
    By Sonyat810 in forum Programming
    Replies: 53
    Last Post: 08-05-2022, 08:24 AM
  3. Replies: 6
    Last Post: 06-30-2017, 02:15 PM
  4. Replies: 8
    Last Post: 03-09-2017, 12:14 PM
  5. Replies: 6
    Last Post: 04-19-2016, 03:58 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