From b6ea456de0e8ed6b6a4e2fb335d348cbf7daa8cb Mon Sep 17 00:00:00 2001 From: Andrew Penhorwood Date: Sun, 23 Jun 2024 07:27:07 -0500 Subject: [PATCH] Update datediff.json --- data/en/datediff.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/en/datediff.json b/data/en/datediff.json index ba7c60bc8..d455c9a94 100644 --- a/data/en/datediff.json +++ b/data/en/datediff.json @@ -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": "\nbirthDate = createDate( 1972, 5, 20 );\nage = dateDiff(\"yyyy\", birthDate, now());\nwriteoutput( age );\n" + "code": "birthDate = createDate( 1972, 5, 20 );\nage = dateDiff('yyyy', birthDate, now());\nwriteoutput( age );" }, { "title": "dateDiff member function",