本文介绍了如何将日期转换为word格式..?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 嗨...我的日期存储在数据库中,但是我希望将这个日期转换为word格式... 假设我的日期2000-02-21存储在数据库中但是我希望将这个日期显示为文本框中的文字格式,如Two February TwoThousands.... 谢谢你.... 解决方案 有很多例子如何将数字转换为文本。看看这些: - http:/ /stackoverflow.com/questions/2729752/converting-numbers-in-to-words-c-sharp [ ^ ] - 如何使用C#将数值或货币转换为英文单词 [ ^ ] 你必须做的唯一例外是月份。对于本月你可以使用 ToString( MMMM ) 有关详细信息,请参阅自定义日期和时间格式字符串 [ ^ ] 检查出来:如何将日期转换为字格式? [ ^ ] Hi...My date is stored in a database but i want to fetch this date into word format...suppose my date "2000-02-21" is stored into database but i want to display this date into textbox in word format like "Two February TwoThousands"....Thank u.... 解决方案 There are lot of examples how to convert numbers to text. Have a look at these:- http://stackoverflow.com/questions/2729752/converting-numbers-in-to-words-c-sharp[^]- How to Convert a Numeric Value or Currency to English Words Using C#[^]The only exception you have to make is with the month. For the month you can useToString("MMMM")For more information see Custom Date and Time Format Strings[^]Check this out: How to convert date to word format?[^] 这篇关于如何将日期转换为word格式..?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-20 09:35
查看更多