|
|
Регистрация Восстановить пароль |
Повторная активизация e-mail |
Регистрация | Задать вопрос |
Заплачу за решение |
Новые сообщения |
Сообщения за день |
Расширенный поиск |
Правила |
Всё прочитано |
|
Опции темы | Поиск в этой теме |
12.08.2010, 08:57 | #1 |
Форумчанин
Регистрация: 29.09.2009
Сообщений: 587
|
12 и 24 система времени в DateTimePicker
Здравствуйте.
Проблема в том что когда я ставлю свойство Format в hh:mm То компонент автоматически переходит с 24-х часовй системы времени на 12 часовую как этого избежать |
12.08.2010, 09:01 | #2 | |
220400
Форумчанин
Регистрация: 21.05.2010
Сообщений: 726
|
Цитата:
ПС: вообще, для таких элементарных вопросов есть справка (сочетание клавиш ctrl+f1) вот что про форматы написано там (по моему все понятно): property Format: String; Description Format specifies custom format string for the date-time display, overriding the control panel strings. A custom format can include both date and time fields, but time fields are not editable unless the Kind property is dtkTime. The following format characters are understood. Element Description d...............The one- or two-digit day. dd...............The two-digit day. Single-digit day values are preceded by a zero. ddd...............The three-character weekday abbreviation. dddd...............The full weekday name. h...............The one- or two-digit hour in 12-hour format. hh...............The two-digit hour in 12-hour format. Single-digit values are preceded by a zero. H...............The one- or two-digit hour in 24-hour format. HH...............The two-digit hour in 24-hour format. Single-digit values are preceded by a zero. m...............The one- or two-digit minute. mm...............The two-digit minute. Single-digit values are preceded by a zero. M...............The one- or two-digit month number. MM...............The two-digit month number. Single-digit values are preceded by a zero. MMM...............The three-character month abbreviation. MMMM...............The full month name. t...............The one-letter AM/PM abbreviation (that is, AM is displayed as "A"). tt...............The two-letter AM/PM abbreviation (that is, AM is displayed as "AM"). yy...............The last two digits of the year (that is, 2001 would be displayed as "01"). yyyy...............The full year (that is, 2001 would be displayed as "2001"). To include literal strings in the format, enclose them in single quotes. Failing to quote literal strings can have unpredicable results, even if they do not include formatting codes. Use two single quotes to represent one single quote character in literal string. For example, 'Today''s date:' MMM dd, yyyy formatted for the first day of April, 2001, would display "Today's date: Apr 01, 2001".
Cерьёзной помощи не ждите - помогаю в перерывах на "перекур".
Не существует ничего невозможного для человека, который не собирается ничего делать сам. Не учите человека, если вы не его учитель. Последний раз редактировалось Sparkman; 12.08.2010 в 09:05. |
|
Похожие темы | ||||
Тема | Автор | Раздел | Ответов | Последнее сообщение |
Система принятия решения (Экспертная система) | daranton | Microsoft Office Excel | 4 | 01.05.2010 17:55 |
Выбор периода времени DateTimePicker | AnkaP | Общие вопросы Delphi | 8 | 25.01.2010 18:41 |
Выбор Даты/Времени из БД при помощи DateTimePicker | rainbow | Общие вопросы Delphi | 3 | 08.10.2008 12:42 |