# DateFormula data type
> Version: _Available or changed with runtime version 1.0._
Represents a date formula that has the same capabilities as an ordinary input string for the CALCDATE Method (Date). The DateFormula data type is used to provide multilanguage capabilities to the CALCDATE Method (Date).
## Remarks
When a date calculation formula is stored in a DateFormula field, it's converted to a generic, nonlanguage dependent format. When a date calculation formula is retrieved from a DateFormula field, it's converted to a valid date conversion string for the currently selected language.
To assign a value to a DateFormula data type, whether it's a field or a variable, you must use the ../system/system-evaluate-method.
The following table shows the syntax that's used to create the date formula.
Syntax|Description
30D|30 days
2W|Two weeks
CM+10D|Current month plus 10 days
CM+1M|Current month plus one month
CQ+1M+20D|Current quarter plus one month plus 20 days
CW+1W|Current week plus one week
D15|On the 15th of each month
In Business Central, weeks begin on Monday and end on Sunday.
## Example
This example requires that you create a DateFormulaVariable variable that is a DateFormula data type.
```al
if Format(DateFormulaVariable) = '' then
  Evaluate(DateFormulaVariable, '<1W>');
```
You must use the ../system/system-format-joker-integer-string-method to make a comparison with a text string. If you don't use this method, then the if statement fails because you can't compare a DateFormula data type with a Text data type.
## Related information
Get Started with AL<../../devenv-get-started>
Developing Extensions<../../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/dateformula/dateformula-data-type, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/dateformula/dateformula-data-type/
