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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

updating date format



 
 
Thread Tools Display Modes
  #1  
Old August 25th, 2004, 02:50 PM
john c
external usenet poster
 
Posts: n/a
Default updating date format

I imported a table and the date format is Aug 24 2004. I
want to change that to a standard mm/dd/yy format. I
would like to automate this process. Can I do this
change using an update query and if so how?
  #2  
Old August 25th, 2004, 04:54 PM
Wayne Morgan
external usenet poster
 
Posts: n/a
Default

What data type is the field? If it is a date/time field, then all you need
to change is the format for that field and/or the controls that display it.
If the field is text, it can be changed using an update query, but usually
you will want the field to be a date/time type. Also, I would recommend 4
digit years.

UPDATE Table1 SET Table1.Field1 = Format(CDate(Table1.Field1), "mm/dd/yy");


--
Wayne Morgan
Microsoft Access MVP


"john c" wrote in message
...
I imported a table and the date format is Aug 24 2004. I
want to change that to a standard mm/dd/yy format. I
would like to automate this process. Can I do this
change using an update query and if so how?



 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Date format Actual to month only RC General Discussion 9 August 25th, 2004 01:30 PM
Mail Merge Date Format Problem Nick Publisher 2 August 17th, 2004 04:55 PM
Date Format Date Formating Problem Database Design 3 August 16th, 2004 06:41 PM
Date Dilema! Kagsy General Discussion 8 July 13th, 2004 03:45 AM
Date format for Track Changes Stuart K New Users 1 June 13th, 2004 11:09 AM


All times are GMT +1. The time now is 07:29 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.