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
|
|||
|
|||
Date Format
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^)-]=[ |
#2
|
|||
|
|||
Date Format
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" wrote in message ... 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^)-]=[ |
#3
|
|||
|
|||
Date Format
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" wrote in message ... 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" wrote in message ... 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^)-]=[ |
Thread Tools | |
Display Modes | |
|
|