Click here to Skip to main content
15,920,217 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In sql database - the data in month is in numbers (1,2,3...12). In my webpage, i would like it to display in month name (Jan, Feb, Mar....Dec). How to convert to number month to month name?

VB.Net

VB
rs = db.ExecuteSelect("SELECT year,month, run_sequence, pay_code, qty, rate, amount, & _
convert(varchar, effective_date,103) as effective_date " & _
FROM payTable, Session("CnnStr").ToString)
Posted
Comments
PIEBALDconsult 27-Apr-15 23:15pm    
That was asked yesterday.
http://www.codeproject.com/Questions/985831/how-to-convert-number-to-Month?cmt=761340#cmt2_985831

1 solution

datename[^] ?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900