dbTalk Databases Forums  

how do you change a date format like this one

comp.databases.ms-access comp.databases.ms-access


Discuss how do you change a date format like this one in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
sparks
 
Posts: n/a

Default how do you change a date format like this one - 09-17-2010 , 08:41 AM






I got some data that has the dates as 10/24/02
But its yyyy/dd/mm

so its FEB 24, 2010 but access sees this as 10/24/2002

I tried format([DateFieldName], "dddd mmmm yyyy")
it says you can't format this date invalid syntax.

this seems simple just re arrange the data. is that what I will have
to do is cut this string up and reformat it?

Reply With Quote
  #2  
Old   
Stuart McCall
 
Posts: n/a

Default Re: how do you change a date format like this one - 09-17-2010 , 12:07 PM






"sparks" <sparks (AT) home (DOT) com> wrote

Quote:
I got some data that has the dates as 10/24/02
But its yyyy/dd/mm

so its FEB 24, 2010 but access sees this as 10/24/2002

I tried format([DateFieldName], "dddd mmmm yyyy")
it says you can't format this date invalid syntax.

this seems simple just re arrange the data. is that what I will have
to do is cut this string up and reformat it?
Try "dd mmm yyyy"

Reply With Quote
  #3  
Old   
Salad
 
Posts: n/a

Default Re: how do you change a date format like this one - 09-17-2010 , 03:29 PM



Stuart McCall wrote:
Quote:
"sparks" <sparks (AT) home (DOT) com> wrote in message
news:1or696dh355m48hvpfbcn3puh7fqcep5gr (AT) 4ax (DOT) com...

I got some data that has the dates as 10/24/02
But its yyyy/dd/mm

so its FEB 24, 2010 but access sees this as 10/24/2002

I tried format([DateFieldName], "dddd mmmm yyyy")
it says you can't format this date invalid syntax.

this seems simple just re arrange the data. is that what I will have
to do is cut this string up and reformat it?


Try "dd mmm yyyy"

Maybe
? dateSerial(Left("10/24/02",2),right("10/24/02",2),mid("10/24/02",4,2))

Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.