Solved

using datename function to return month in 3 character format

Posted on 2008-11-03
2
1,524 Views
Last Modified: 2012-06-22
I am using the datename function to return the month that an invoice was created, however, it returns full months, like January, February, etc.  Is there a way to return 3 character month names, like Jan, Feb, Mar, etc?   If not, is there a way to only pick up the first 3 characters in the month field?
Thanks, JoMar
0
Comment
Question by:JoMar
2 Comments
 
LVL 60

Accepted Solution

by:
chapmandew earned 500 total points
ID: 22867438

select left(datename(m, getdate()),3)
0
 

Author Closing Comment

by:JoMar
ID: 31512702
That worked - thanks much
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Why does this keep coming up NULL? 2 45
Need some help wiht :CAST AS Double 11 44
Grid querry results 41 74
Help with SQL - TOP 10 by date and by group 13 34
by Mark Wills PIVOT is a great facility and solves many an EAV (Entity - Attribute - Value) type transformation where we need the information held as data within a column to become columns in their own right. Now, in some cases that is relatively…
In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now