Solved

using datename function to return month in 3 character format

Posted on 2008-11-03
2
1,526 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Introduction This article will provide a solution for an error that might occur installing a new SQL 2005 64-bit cluster. This article will assume that you are fully prepared to complete the installation and describes the error as it occurred durin…
Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

856 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