---
schema_version: "1"
id: 5efc92df4127aff3edcc5cf1f433feb573e80967926c50d330aa3ffb3e77a6dd
title: atBeginningOfDay
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.6/dw-dates-functions-atbeginningofday.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.6/dw-dates-functions-atbeginningofday
source_site: docs.mulesoft.com
content_type: documentation
content_hash: e7664ef5dc16e6d73edd8829a1f35dbfdbc00dd3318f88898b05ed871fe5f213
description: MuleSoft Documentation Site
release: "2.6"
latest: false
---
# atBeginningOfDay

## [](#atbeginningofday1)atBeginningOfDay(dateTime: DateTime): DateTime

入力内の ​`Time`​ 値を指定された​_日_​の開始に変更する新しい ​`DateTime`​ 値を返します。

入力内の時間、分、秒は ​`00:00:00`​ に変更されます。

_DataWeave バージョン 2.4.0 で導入されました。_

### [](#パラメーター)パラメーター

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 25%;">
<col style="width: 75%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>dateTime</code></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>参照する ​<code>DateTime</code>​ 値。</p>
</div></div></td>
</tr>
</tbody>
</table>

### [](#例)例

次の例では、​`DateTime`​ 入力内の ​`Time`​ 値を指定された日の開始に変更します。

#### [](#ソース)ソース

```DataWeave
%dw 2.0
import * from dw::core::Dates
output application/json
---
{
  "atBeginningOfDayDateTime": atBeginningOfDay(|2020-10-06T18:23:20.351-03:00|)
}
```

#### [](#出力)出力

```Json
{
  "atBeginningOfDayDateTime": "2020-10-06T00:00:00-03:00"
}
```

## [](#atbeginningofday2)atBeginningOfDay(localDateTime: LocalDateTime): LocalDateTime

入力内の ​`Time`​ 値を指定された​_日_​の開始に変更する新しい ​`LocalDateTime`​ 値を返します。

入力内の時間、分、秒は ​`00:00:00`​ に変更されます。

_DataWeave バージョン 2.4.0 で導入されました。_

### [](#パラメーター-2)パラメーター

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 25%;">
<col style="width: 75%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>localDateTime</code></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>参照する ​<code>LocalDateTime</code>​ 値。</p>
</div></div></td>
</tr>
</tbody>
</table>

### [](#例-2)例

次の例では、​`LocalDateTime`​ 入力内の ​`Time`​ 値を指定された日の開始に変更します。

#### [](#ソース-2)ソース

```DataWeave
%dw 2.0
import * from dw::core::Dates
output application/json
---
{
  "atBeginningOfDayLocalDateTime": atBeginningOfDay(|2020-10-06T18:23:20.351|)
}
```

#### [](#出力-2)出力

```Json
{
  "atBeginningOfDayLocalDateTime": "2020-10-06T00:00:00"
}
```