d

d() copy to clipboard

Return day as text.

To insert leading zero to the output, give true to set_leading_zero.

Result

text

Example
tell script "XDate"'s make_with("2018/1/1")
log d() -- "1"
set_leading_zero(true)
log d() -- "01"
end tell