Trường · Weekday
Trường · Weekday · date.weekday. Phương thức tạo · Ví dụ
date.weekday
Cài đặt trình tạo
Tạo dữ liệu để xem kết quả ở đây.
Tham số & Ví dụ
Returns a random day of the week.
date.weekday(options?: { abbreviated?, context? })- options
- The optional options to use.
- options.abbreviated
- Whether to return an abbreviation. Defaults to false.
- options.context
- Whether to return the day of the week in the context of a date. In the default en locale this has no effect, however, in other locales like fr or ru, this may affect grammar or capitalization, for example 'Lundi' with { context: false } and 'lundi' with { context: true } in fr. Defaults to false.
Ví dụ
"Thursday"Dùng dữ liệu tổng hợp trong môi trường kiểm thử.