English 中文(简体)
C 采用“a.m”和“p.m”代替AM/PM的时间格式
原标题:C# time format to use "a.m." and "p.m." instead of AM/PM?

我无法了解如何利用文化信息学课程(或需要的话)在“a.m”和“p.m”中显示一种格式的时间(注明时间段),而不是缺省会和PM。

首先,文化如何围绕“a.m /”p.m”的使用? 是否有办法利用供应商的格式,而不是铺设替代物的黑板? 感谢。

最佳回答

查阅http://msdn.microsoft.com/en-us/library/system.globalization.datetimeformatinfo.aspx” rel=“noreferer”>DatetimeFormatInfo, 载于。 其AMDesignatorPMDesignator ,使您能够确定这些数值所用的说明。

3. 特别注意到这一联系的评注部分,特别是:

The application can replace standard patterns with custom patterns by setting the associated properties of a writable DateTimeFormatInfo object. To determine if a DateTimeFormatInfo object is writable, the application should use the IsReadOnly property.

如果你把文化信息信息及其儿童从现在的、老的或特定的文化中拿到目标,他们往往被缺席读。 准备在这些物体上使用<代码>Clone(>)法,以检索您能够回来的可复制件,并用于确定格式说明。

页: 1 日期FormatInfo和AM/PM Property set asCHE, 您可提供如下信息:IFormatProvider, 所用方法有String.Format(Object.ToString(>)。

问题回答

暂无回答




相关问题
Mysql compaire two dates from datetime?

I was try to measure what is faster and what should be the best way to compare two dates, from datetime record in MySql db. There are several approaches how to grab a date from date time, but I was ...

iPhone Date Picker rolls over to 2010 on December 27th?

So I implemented a UIDatepicker in one of my applications for scheduling and autodialing teleconferences... everything is pretty much ready to go except, while testing I noticed that when the date ...

Convert date Python

I have MMDDYY dates, i.e. today is 111609 How do I convert this to 11/16/2009, in Python?

specifying date format when using $form->inputs() in CakePHP

I am wondering if there is a way to specify the date format in the forms created using CakePHP s $form->inputs(); Please note that this is not the individual $form->input() but instead $form->inputs() ...

NSDateFormat, super simple! Where am I screwing up?

Ok, this is really simple, maybe I m a getting a bit burnt out, but seems like it should work, Query XML feed, put out date string, format, display in a cell. The issue is I m a getting a NULL ...

sqlite writing a date into an email

I am exporting a date value from sqlite and placing it into an email. The date appears like this 279498721.322872 I am using Objective C in an Iphone App. Does anyone know how to make this export ...

热门标签