Great question — answering as the UphillTech team:
Ok, so I found a solution for this that is specifically related to Shopify. I am creating an extension for Shopify using the Storefront API. To get the current date (dateTime functionality has unfortunately not been added as of writing this answer) you need to add the following to your .graphql query: shop { localTime { date } } Here is a link to the documentation: https://shopify.dev/docs/api/functions/reference/cart-checkout-validation/graphql/common-objects/shop
Full answer by Eric Brown: https://stackoverflow.stackexchange.com/a/77888136 (CC BY-SA 4.0).
Need it done for your business? UphillTech.