A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Input Mask-Change to Date/Time Format



 
 
Thread Tools Display Modes
  #1  
Old April 27th, 2004, 06:31 PM
DD
external usenet poster
 
Posts: n/a
Default Input Mask-Change to Date/Time Format

I have a date/time field in a table for which the format
is general date. The default value is Now() which returns
for example 4/27/2004 12:31:10 PM. How can I change the
format of this field to produce these results minus the
seconds? Thanks in advance!
  #2  
Old April 27th, 2004, 07:53 PM
Marin Kostov
external usenet poster
 
Posts: n/a
Default Input Mask-Change to Date/Time Format

Use the Date() function.

--
Marin Kostov
Microsoft Office XP Master Instructor


  #3  
Old April 27th, 2004, 09:15 PM
John Vinson
external usenet poster
 
Posts: n/a
Default Input Mask-Change to Date/Time Format

On Tue, 27 Apr 2004 10:31:19 -0700, "DD"
wrote:

I have a date/time field in a table for which the format
is general date. The default value is Now() which returns
for example 4/27/2004 12:31:10 PM. How can I change the
format of this field to produce these results minus the
seconds? Thanks in advance!


Use a Format property of

mm/dd/yyyy hh:nn

instead of General Date.

Note that the time will actually be *stored* accurate to a few
milliseconds - just not displayed. So searching for a record using a
criterion of #4/27/2004 12:31# will most likely fail.

John W. Vinson[MVP]
Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:28 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.