Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
29 lines (24 sloc) 586 Bytes
metadata:
title: Date parts
documentation: "https://docassemble.org/docs/functions.html#month_of"
---
mandatory: True
question: |
The date ${ some_date }, explained.
subquestion: |
The year is ${ year_of(some_date) }.
The month is ${ month_of(some_date) }.
The month as a word is
${ month_of(some_date, as_word=True) }.
The day of month is
${ day_of(some_date) }.
The day of week is
${ dow_of(some_date) }.
The day of week as a word is
${ dow_of(some_date, as_word=True) }.
---
question: |
Give me a date.
fields:
- Date: some_date
datatype: date