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 » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

date format



 
 
Thread Tools Display Modes
  #1  
Old October 13th, 2004, 09:11 AM
Leslie Isaacs
external usenet poster
 
Posts: n/a
Default date format

Hello All
I have imported some data that has a date field in the format yyyymmdd. The
rest of my database has dates as ddmmyyyy, so I don't want to change the
setting in control pannel. I'm sure there must be an easy way of converting
the field in my imported data to ddmmyyyy format but I can't seem to get it,
so if anyone can help I would be extremely grateful.
Thanks
Les


  #2  
Old October 13th, 2004, 11:35 AM
Jeff Boyce
external usenet poster
 
Posts: n/a
Default

G'morning, Leslie

Check the DateSerial() function if you want to convert the data to a
date/time value. You can use the Left(), Mid() and Right() functions to
"extract" the 'dd', 'mm', and 'yyyy' components.

When you say your database has dates as ddmmyyyy, do you mean you literally
are storing a text-type field with that structure, or are you using that
format to display your date/time field values?

--
Good luck

Jeff Boyce
Access MVP

 




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
i cant change the format of the date when referencing another cell Brian Worksheet Functions 3 September 29th, 2004 05:02 AM
Date Format Aurora Running & Setting Up Queries 1 September 21st, 2004 03: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
Pivot Table - Format of Date Field Peo Sjoblom Worksheet Functions 0 February 3rd, 2004 07:20 PM


All times are GMT +1. The time now is 04:34 AM.


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