# Dateオブジェクト. 要素. 4. DayOfWeek(曜日)

# Bash

date +%u

# Excel

=WEEKDAY()

# JavaScript

d.getDay()

# PHP

$d->format('w')

# Python

d.weekday() # カッコが必要

weekday() だけカッコ要るので注意

# Ruby

d.wday

# Swift

c.component(.weekday, from: d)

[ 📩 ご意見 ]