我如何获得完整的月份名称而不仅仅是数字? [英] How do I get the full month name and not just the number?

查看:86
本文介绍了我如何获得完整的月份名称而不仅仅是数字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用datepart来获取月份的真实姓名,例如

" April"或APR或APR。不仅仅是4。我在

文档中找不到它。抱歉。谢谢。

解决方案

jm写道:

我正在尝试使用datepart来获取月份的真实姓名
四月或APR或APR。不仅仅是4。我在
文档中找不到它。抱歉。谢谢。




尝试这些尺寸。转到即时窗口并输入

?格式(日期(),mmm)

?格式(日期(),mmmm)

?格式(日期(),mmmmm)

?格式(Date()," mmmmmm")


Salad写道:

jm写道:

我正在尝试使用datepart来获取月份的真实姓名,例如
April。或APR或APR。不仅仅是4。我在
文档中找不到它。抱歉。谢谢。



尝试这些尺寸。转到即时窗口并输入
?格式(日期(),mmm)
?格式(日期(),mmmm)
?格式(日期(),mmmmm)
?格式(日期(),mmmmmm)




我想你只想要4m,我还没看到5或者是什么6做。


说到这一点,我刚刚从出口格式的巴库我的一个客户服务器上运行导入导出日期是中等

日期格式。这个月的名字出现在土耳其语,因为计算机设置为

到土耳其语的Windows。现在导入,用英语导入日期为中等格式的日期格式,工作正常,因为......是否可以指定一个始终为的日期格式不管是什么?b $ b计算机的国家/地区设置都是英文?


我可以在日期与你忠实的人一起运行(Allen会
喜欢这个)mid(" xxxJanFebMarAprMayJunJulAugSepOctNovDec",Mont h(日期)* 3 + 1,3)

但我只是想知道Access是否可以做到这一点'' todd。


-

读取信号时出错 - A)bort R)etry I)用大锤子影响


" Trevor Best" < NOSPAM @本地>消息回复

news:40 ********************** @ auth.uk.news.easynet .net ... < blockquote class =post_quotes>我可以在日期与你忠实的人一起运行一个函数
(艾伦会喜欢这个)
mid(" xxxJanFebMarAprMayJunJulAugSepOctNovDec",Mont h(date)* 3 + 1, 3)




Aaaaaaaaaaa不行!!!!


:-)


-

Allen Browne - 微软MVP。西澳大利亚州珀斯。

访问用户提示 - http:// allenbrowne.com/tips.html

回复群组,而不是mvps dot org的allenbrowne。


I am trying to use datepart to get the real name of the month like
"April" or "APR" not just "4." I could not find it in the
documentation. Sorry. Thank you.

解决方案

jm wrote:

I am trying to use datepart to get the real name of the month like
"April" or "APR" not just "4." I could not find it in the
documentation. Sorry. Thank you.



Try these out for size. Go to the immediate window and enter
? Format(Date(),"mmm")
? Format(Date(),"mmmm")
? Format(Date(),"mmmmm")
? Format(Date(),"mmmmmm")


Salad wrote:

jm wrote:

I am trying to use datepart to get the real name of the month like
"April" or "APR" not just "4." I could not find it in the
documentation. Sorry. Thank you.


Try these out for size. Go to the immediate window and enter
? Format(Date(),"mmm")
? Format(Date(),"mmmm")
? Format(Date(),"mmmmm")
? Format(Date(),"mmmmmm")



I think you just want the 4 "m"s, I''ve not seen what the 5 or 6 do.

Speaking of which, I just ran an import and export from one of my
client''s servers in Baku, in the export format the dates are in medium
date format. The month names came out in Turkish as the computer was set
to Turkish in Windows. Now the import, which imports dates in medium
date format in English, worked fine, given that... is it possible to
specify a date format that will always be in English regardless of the
computer''s country settings?

I could run a function on the dates with ye olde faithful (Allen will
love this) mid("xxxJanFebMarAprMayJunJulAugSepOctNovDec",Mont h(date)*3+1,3)
but I was just wondering if Access could do it on it''s todd.

--
Error reading sig - A)bort R)etry I)nfluence with large hammer


"Trevor Best" <nospam@localhost> replied in message
news:40**********************@auth.uk.news.easynet .net...

I could run a function on the dates with ye olde faithful
(Allen will love this)
mid("xxxJanFebMarAprMayJunJulAugSepOctNovDec",Mont h(date)*3+1,3)



Aaaaaaaaaaagh No!!!!

:-)

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.


这篇关于我如何获得完整的月份名称而不仅仅是数字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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