Skip to content

Commit

Permalink
Merge pull request #1658 from penhorwood/patch-1
Browse files Browse the repository at this point in the history
Update datediff.json
  • Loading branch information
pfreitag authored Sep 13, 2024
2 parents b95b101 + b6ea456 commit 5e36a01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/en/datediff.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
{
"title": "How old are they?",
"description": "Calculates a persons age based on a variable birthDate which contains a date. Uses the now function to get current date.",
"code": "dateDiff(\"yyyy\", birthDate, now())"
"code": "birthDate = createDate( 1972, 5, 20 );\nage = dateDiff('yyyy', birthDate, now());\nwriteoutput( age );"
},
{
"title": "dateDiff member function",
Expand Down

0 comments on commit 5e36a01

Please sign in to comment.