Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DatePart Question

Status
Not open for further replies.

t5amec

Programmer
Aug 14, 2003
112
GB
I have a query that will turn 19/03/2004 to 3.
Code:
DatePart("m",[WeekEnd])
That's ok but not what i want.

Firstly I would like it so it would show the first three letters from name of the month, ie MAR. and the year too.

My expertise in DatePart are as advanced as my similie making, and would lead my to editing the above code to:
Code:
DatePart("MMM-YYYY",[WeekEnd])
but you guys will know better than I, that this will not work at all.

Please help.

Thanks in advance.

Make Sense? I hope so (-:
 
Hi,

How 'bout
[tt]
Format([WeekEnd], "mmm-yyyy")
[/tt]


Skip,

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
weeee, cheers skip, give yourself a pat on the back



Make Sense? I hope so (-:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top