Date problems

G

Guest

Hi, can anyone help?

I have a date field in a table which is in the format dd/mm/yyyy. Can anyone tell me how I can create a calculated field as part of a query which returns the original date as a mm/yyyy format? Many thanks for your hel

Bigweed
 
B

Brian Camire

If the data type of the date field is Date/Time (and not Text, for example),
you might use an expression like this in a query:

Format([Your Table].[Your Date Field], "mm/yyyy")

Bigweed said:
Hi, can anyone help??

I have a date field in a table which is in the format dd/mm/yyyy. Can
anyone tell me how I can create a calculated field as part of a query which
returns the original date as a mm/yyyy format? Many thanks for your help
 
A

Allen Browne

Type this into the Field row of your query:
AmericanDate: Format([MyField], "mm\/dd\/yyyy")

For general suggestions on handling dates in Access in a non-American
format, see:
http://allenbrowne.com/ser-36.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.

Bigweed said:
Hi, can anyone help??

I have a date field in a table which is in the format dd/mm/yyyy. Can
anyone tell me how I can create a calculated field as part of a query which
returns the original date as a mm/yyyy format? Many thanks for your help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top