PC Review


Reply
 
 
WSR
Guest
Posts: n/a
 
      11th Mar 2010
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^>)-]=[


 
Reply With Quote
 
 
 
 
Jeff Boyce
Guest
Posts: n/a
 
      11th Mar 2010
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" <wsr-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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^>)-]=[
>



 
Reply With Quote
 
 
 
 
WSR
Guest
Posts: n/a
 
      12th Mar 2010
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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" <wsr-(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> 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^>)-]=[
>>

>
>



 
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
Need help with converting CUSTOM format/TEXT format to DATE format Deo Cleto Microsoft Excel Worksheet Functions 6 2nd Jun 2009 08:14 PM
i have two date fileds Opend date Due date, can i set default on due date so, its always = to open date on my data entry form1 Urgent Mike Saifie Microsoft Access Form Coding 1 9th Mar 2006 02:08 AM
Convert Date Format of 7/29/04 to Date Format of 072904 =?Utf-8?B?UGV0cmE=?= Microsoft Excel Programming 1 29th Jul 2004 09:31 PM
Change german date-format in englisch date-format? pedros25 Microsoft Excel Programming 2 16th Mar 2004 11:28 AM
Change a date in text format xx.xx.20xx to a recognised date format concatenator Microsoft Excel Programming 1 25th Nov 2003 12:33 AM


Features
 

Advertising
 

Newsgroups
 


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