Date Format

  • Thread starter Thread starter WSR
  • Start date Start date
W

WSR

I'd like to create my own Date / Time format. The Excel Equivalent is
MMM-YYYY (Mar-2010).

How can I change/create a new date format that will be displayed MMM-YYYY?

I want to be able to query this table and run criteria based on the date.

Thanks.

(B^>)-]=[
 
You can create a custom display format for date that looks like "MMM-YYYY"
.... but if your underlying data is a date/time field, you will still be
storing a date/time value.

Mar-2010 is not a date.

If you are trying to create a query that requires selection criteria in that
format, why? Is there a reason not to just search for a date in March,
2010?

And how are you looking to collect that selection criterion for your query?

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.
 
Jeff:

Thanks for the reply. I used your advice and it works fine.

What I was doing was reformatting a column to date time and wanted just the
MMM-YYYY to display rather than the exact date.

Your solution works fine. Now I'm able to query things like ">12/31/2008"

Thanks.

Bill


Jeff Boyce said:
You can create a custom display format for date that looks like "MMM-YYYY"
... but if your underlying data is a date/time field, you will still be
storing a date/time value.

Mar-2010 is not a date.

If you are trying to create a query that requires selection criteria in
that format, why? Is there a reason not to just search for a date in
March, 2010?

And how are you looking to collect that selection criterion for your
query?

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

WSR said:
I'd like to create my own Date / Time format. The Excel Equivalent is
MMM-YYYY (Mar-2010).

How can I change/create a new date format that will be displayed
MMM-YYYY?

I want to be able to query this table and run criteria based on the date.

Thanks.

(B^>)-]=[
 
Back
Top