Changing Date/Time format

senn2912

New member
Local time
Yesterday, 16:40
Joined
Nov 23, 2011
Messages
7
Hi All,

Can someone please help?

I am struggling to change the format of 2013-07-29 11:33:03.6160000 to show dd/mm/yyyy

Thanks in advance,

G
 
How about using, DateSerial and Mid function together? You can use them in a Query as..
Code:
SELECT theOldDateField, 
[URL="http://www.techonthenet.com/access/functions/date/dateserial.php"]DateSerial[/URL](Mid(theOldDateField, 1, 4), Mid(theOldDateField, 6, 2), Mid(theOldDateField, 9, 2)) AS newDateField 
FROM theTableName;
 
It seems the reason that i am also having problems is due to the fact my date format in my table is actually TEXT...
 
Sorry I am :confused: did you try the above? Did it not work?
 

Users who are viewing this thread

Back
Top Bottom