[dba-SQLServer]Convert int month to char month

paul.hartland at fsmail.net paul.hartland at fsmail.net
Fri Apr 25 10:36:07 CDT 2003


try something like

format(MyIntNumber,"MMM")

that may do it.....

Paul


From: "Stoker, Kenneth E" <Kenneth.Stoker at pnl.gov>
Date: Fri 25/Apr/2003 15:26 GMT
To: "dba-SQLServer (E-mail)" <dba-SQLServer at databaseadvisors.com>
Subject: [dba-SQLServer]Convert int month to char month

Does anyone know of a way to convert the return value of month([mydate]) from an integer to its equivalent char value?

	1	JAN
	2	FEB
	3	MAR
	.....

Thank you for your help.

Ken Stoker
Technology Commercialization
Information Systems Administrator
PH: (509) 375-3758
FAX: (509) 375-6731
E-mail:  Kenneth.Stoker at pnl.gov 


_______________________________________________
dba-SQLServer mailing list
dba-SQLServer at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-sqlserver
http://www.databaseadvisors.com


__________________________________________________________________________
Join Freeserve http://www.freeserve.com/time/

Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application.




More information about the dba-SQLServer mailing list