PC Review


Reply
Thread Tools Rate Thread

Dispaying the Day in the Date

 
 
Simon
Guest
Posts: n/a
 
      30th Mar 2007
I can display the date as 30th March 2007 is there a way to display
the day as well Friday 30th March 2006


Thanks

 
Reply With Quote
 
 
 
 
Rick B
Guest
Posts: n/a
 
      30th Mar 2007
To display a day...

=Format([YourDateFieldNameHere],"dddd")

--
Rick B



"Simon" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I can display the date as 30th March 2007 is there a way to display
> the day as well Friday 30th March 2006
>
>
> Thanks
>



 
Reply With Quote
 
Jeff Boyce
Guest
Posts: n/a
 
      31st Mar 2007
Simon

Have you looked at the Long Date format in your table/field definition?

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Simon" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I can display the date as 30th March 2007 is there a way to display
> the day as well Friday 30th March 2006
>
>
> Thanks
>



 
Reply With Quote
 
raskew via AccessMonster.com
Guest
Posts: n/a
 
      31st Mar 2007
Public Function DateSay(ByRef pdte As Date) As String
Dim strHold As String

strHold = Format(pdte, "dddd mmmm") & " " & NumSuffix(Day(pdte)) & " " &
Format(pdte, "yyyy")
DateSay = strHold

End Function

Public Function NumSuffix(mynum As Variant) As String
'*******************************************
'Purpose: Add suffix to a number
'coded by: raskew
'Inputs: ? NumSuffix(234)
'Output: 234th
'*******************************************
Dim n As Integer
Dim x As Integer
Dim strSuf As String

n = Right(mynum, 2)
x = n Mod 10
strSuf = Switch(n <> 11 And x = 1, "st", n <> 12 And x = 2, "nd", _
n <> 13 And x = 3, "rd", True, "th")
NumSuffix = LTrim(str(mynum)) & strSuf

End Function

To test from debug (immediate) window:
? datesay(date())
Friday March 30th 2007

HTH - Bob

Jeff Boyce wrote:
>Simon
>
>Have you looked at the Long Date format in your table/field definition?
>
>Regards
>
>Jeff Boyce
>Microsoft Office/Access MVP
>
>>I can display the date as 30th March 2007 is there a way to display
>> the day as well Friday 30th March 2006
>>
>> Thanks


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200703/1

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dispaying a date with the day in Simon Microsoft Access 2 12th Apr 2007 10:55 PM
Dispaying date witht the day in Simon Microsoft Access 3 12th Apr 2007 10:54 PM
cd rom dispaying no disc in drive. =?Utf-8?B?U1RFUkVPTUFO?= Windows XP General 3 11th Feb 2006 03:42 AM
dispaying two docs in Word2002 Tom Barkas Microsoft Word New Users 3 19th Jan 2005 05:42 PM
dispaying website on a pda =?Utf-8?B?a2llcm9u?= Microsoft Frontpage 1 15th Mar 2004 07:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:03 PM.