目次
索引 🔎︎

# DateValue Function

日付文字列から日付の値を返します。日付文字列は 1 つの数値で表される完全な日付です。このシリアル値を使用して、2 つの日付の間の差を調べることもできます。

### Syntax:

      DateValue(date)

### Parameters:

Date: String expression that contains the date that you want to calculate. In contrast to the DateSerial function that passes years, months and days as separate numeric values, the DateValue function requests the date string to be according to either one of the date acceptance patterns defined for your locale setting (see LibreOffice - Preferences Tools - Options - Language Settings - Languages) or to ISO date format (momentarily, only the ISO format with hyphens, e.g. "2012-12-31" is accepted).

### Return value:

The computed date.

### Error codes:

5 無効なプロシージャー呼び出しです

### Example:

      Sub ExampleDateValue
          MsgBox DateValue("23/02/2011")
      End Sub