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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
extract part of a text value into a date
I have a field that is a date but it is stored as a string. I am not allowed
to change the field data type, but in my access report I would like to display it in more of a readable date format. Right now it displays as "yyyymmdd". Is there a way to format it so that it is mm/dd/yyyy? Thanks in advance |
#2
|
|||
|
|||
extract part of a text value into a date
On Jul 17, 1:16*pm, sherriross81
wrote: I have a field that is a date but it is stored as a string. *I am not allowed to change the field data type, but in my access report I would like to display it in more of a readable date format. *Right now it displays as "yyyymmdd". *Is there a way to format it so that it is mm/dd/yyyy? Thanks in advance Does the CDate() function work like this? SELECT Format( CDate( AnsiInternationalDate ) , "mm/dd/yyyy" ) from MyTable; Wouldn't that do the trick? |
#3
|
|||
|
|||
extract part of a text value into a date
Substitute your field name in the formula below for [y] ---
Format(CVDate(Right(Left([y],6),2) & "/" & Right([y],2) & "/" & Left([y],4)),"mm/dd/yyyy") -- KARL DEWEY Build a little - Test a little "sherriross81" wrote: I have a field that is a date but it is stored as a string. I am not allowed to change the field data type, but in my access report I would like to display it in more of a readable date format. Right now it displays as "yyyymmdd". Is there a way to format it so that it is mm/dd/yyyy? Thanks in advance |
Thread Tools | |
Display Modes | |
|
|