diff --git a/app/utils/iso-date-is-today.js b/app/utils/iso-date-is-today.js new file mode 100644 index 0000000..5573644 --- /dev/null +++ b/app/utils/iso-date-is-today.js @@ -0,0 +1,4 @@ +export default function(value) { + const today = new Date().toISOString().split('T')[0]; + return value === today; +}