Solved

using datename function to return month in 3 character format

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to check data in sql table 11 47
SQL Trigger selecting another database 4 37
Divide by zero error encountered. 2 39
Help with SQL - TOP 10 by date and by group 13 39
So every once in a while at work I am asked to export data from one table and insert it into another on a different server.  I hate doing this.  There's so many different tables and data types.  Some column data needs quoted and some doesn't.  What …
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

786 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