如何转换为月数名称? [英] How to convert to number month to month name?

查看:69
本文介绍了如何转换为月数名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在sql数据库中 - 月份中的数据是数字(1,2,3 ... 12)。在我的网页中,我希望它以月份名称显示(1月,2月,3月...... 12月)。如何转换为月数名称?



VB.Net



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

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)

推荐答案

日期名称 [ ^ ]?


这篇关于如何转换为月数名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆