Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
QuickStart

クイック・スタート -

DateTime

日時

  Properties

   プロパティ -

DateTime

日時

日時ウェブレットは、日付と時刻、もしくはそのいずれかの表示、入力、プロンプト、妥当性検査のサポート追加機能を持ったテキスト入力ボックス・コントロールを提供します。<input typeThe datetime weblet provides a text input box control with added features to support the display, entry, prompting and validation of date and/or time values. It broadly corresponds to the <input type="text"> HTML element.An エレメントと概ね同じです。

このウェブレットの例を以下に示します。この例では、(オプションの)カレンダーのプロンプト・ボタンがクリックされると、カレンダーのプロンプト・ウィンドウが表示されます。

Image Added

日時ウェブレットを使って、日付、時間、または日時を含むフィールドの表示と入力値の受信を行います。フィールドに日付または時間のみが含まれている場合、このウェブレットがベースになっている、より特化されたウェブレット (std_date もしくはstd_timeのいずれか) を使用しても構いません。

日時ウェブレットはdatetimedatetimeデータタイプのフィールドと共に使用するのが一番です。これらのタイプを使用すると、データは自動的にウェブレットで想定される形式で受け渡されます。パック形式や符号付きなど他の数値タイプのフィールドで日時ウェブレットを使用することも可能ですが、数値が日時ウェブレットで想定される正しいISOフォーマットであることを自分の責任で確認する必要があります。例えば、YYYYMMDDHHMMSS形式の日付と時間を含むsigned (14, 0)フィールドは、ISOの日時形式に形式変換する編集文字(‘0  - - & : : ‘)を使用します。 example of the weblet is shown below. In this example, the (optional) calendar prompt button has been clicked and the calendar prompt window is visible:
Image Removed
The datetime weblet is used to display and receive input for fields containing dates, times or datetimes. If your field contains only a date or only a time you may prefer to use one of the specialized weblets that are based on this weblet: std_date or std_time.The datetime weblet is best used with fields of date, time or datetime data types. If you use these types, the data will automatically be passed in the format expected by the weblet. You can use the datetime weblet with fields of other numeric types such as packed or signed, but it is your responsibility to ensure the numeric value is formatted in the correct ISO format expected by the datetime weblet. For example, you could use a signed (14, 0) field containing a date and time in YYYYMMDDHHMMSS format with an edit word ('0 - - & : : ') to format it as an ISO date and time format.