Eirman
asked on
Adapt Excel Date Code For Access
I use the following code in Excel to format today's date like this .......
11th April 3rd April 1st March 14th May 31st July
EXCEL CELL Contains this (No VBA Used)
11th April 3rd April 1st March 14th May 31st July
EXCEL CELL Contains this (No VBA Used)
=TEXT(TODAY(),"d") & IF(OR(MOD(TEXT(TODAY(),"d"),100)={11,12,13}),"th",CHOOSE(1+MIN(4,MOD(TEXT(TODAY(),"d"),10)),"th","st","nd","rd","th")) & " " & TEXT(TODAY(),"mmmm")
Can it be adapted to work in Access 2013 ?
ASKER
@Norrie - I need the code in a text box
At the moment I have =Date() Format = dddd - dd mmmm yyyy
It your code a VBA function?
At the moment I have =Date() Format = dddd - dd mmmm yyyy
It your code a VBA function?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That appears to be working fine Norie
I'll check it with a few different dates before closing the question.
I'll check it with a few different dates before closing the question.
ASKER
I changed the computer clock a few times and everything is okay.
Thank You.
Thank You.
Open in new window