Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / May 2008

Tip: Looking for answers? Try searching our database.

Long Date format without day of the week

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Candice - 20 May 2008 18:40 GMT
How can I format a date to appear 'Month Day, Year' (ie. May 20, 2008)? The
closest I can find is the Long Date format (ie. Tuesday, May 20, 2008), which
includes the day of the week. How can I exclude the day from the format?

What input mask would reflect the same date format?

I use this date field with Mail Merge in MSWord and need the date to import
as indicated above.
Signature

Candice

Douglas J. Steele - 20 May 2008 18:48 GMT
You're not limited strictly to the named formats. Set your format to:

mmmm dd, yyyy

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

> How can I format a date to appear 'Month Day, Year' (ie. May 20, 2008)?
> The
[quoted text clipped - 7 lines]
> import
> as indicated above.
Jerry Whittle - 20 May 2008 19:02 GMT
First off the format has nothing, absolutely nothing with how date and time
data is stored in an Access database. Actually it's stored as a number.

For example May, 20 2008 is actually stored as 39588.

5/20/2008 12:55:23 PM is stored as 39588.5384606481.

Format is how that number is displayed. Therefore an input mask for a
Date/Time field would make no difference in how the data is displayed short
of requiring or preventing the time from being entered.

In a query you could use something like below to display the date as you wish.
TheDate: Format([TheDateField], "MMMM, DD YYYY")

In a form's field the format would look like so:
  mmmm", "dd yyyy
Signature

Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.

> How can I format a date to appear 'Month Day, Year' (ie. May 20, 2008)? The
> closest I can find is the Long Date format (ie. Tuesday, May 20, 2008), which
[quoted text clipped - 4 lines]
> I use this date field with Mail Merge in MSWord and need the date to import
> as indicated above.
Chris O'C - 20 May 2008 19:09 GMT
If you're using a query for your mail merge, use the format function in one
of the columns in the query grid.  Example:

BDay: Format(Birthday, "mmmm dd, yyyy")

In SQL View:

SELECT FName, LName, Format(Birthday, "mmmm dd, yyyy") AS BDay
FROM tblEmps;

Chris
Microsoft MVP

>How can I format a date to appear 'Month Day, Year' (ie. May 20, 2008)? The
>closest I can find is the Long Date format (ie. Tuesday, May 20, 2008), which
[quoted text clipped - 4 lines]
>I use this date field with Mail Merge in MSWord and need the date to import
>as indicated above.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.