Results 1 to 3 of 3
  1. #1
    gringotani is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Posts
    5

    outputting current date in this format: 2014-02-18T00:00:00

    Hi, I need the time stamp field in my update query to output the current date/time in this format: "YYYY-MM-DD-"T"HH:MM:SS" for example "2014-02-18T00:20:20" would mean feb/18/2014 12:20 AM and 20 seconds). Please provide me the expression/function to copy and paste...


    Thank you very much in advance, Nathaniel

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    That can be done with Format function. The result is a text value, not a date/time. Why would you want to store non-date value?

    Format(Now(), "YYYY-MM-DD-THH:NN:SS")
    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.

  3. #3
    gringotani is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2013
    Posts
    5
    Thank you!

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

Similar Threads

  1. Replies: 3
    Last Post: 01-27-2014, 02:45 PM
  2. Replies: 1
    Last Post: 01-22-2014, 03:45 PM
  3. Replies: 4
    Last Post: 03-12-2013, 06:49 PM
  4. Replies: 7
    Last Post: 08-13-2012, 06:59 AM
  5. Replies: 1
    Last Post: 12-07-2011, 01:02 PM

Tags for this Thread

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