Articles on: Frequently Asked Questions (FAQ)

How to set the current date-time for a date metafield?

You can set a date metafield in your Shopify products to the current date and time, so the value updates with each sync. This takes two steps: create the metafield in Shopify, then map it in Stock Sync.



Step 1: Set Up the Metafield in Shopify Admin


Go to Settings → Custom Data → Products/Variants → Add Definition.




Step 2: Configure the Metafield in Stock Sync


Go to App → Feed Settings → Step 2: Matching Column


  1. Select the Metafield option: In Stock Sync, choose the Metafield option.
  2. Choose your Shopify field: Select the metafield you created in Shopify admin.
  3. Enter the current date: Use the static value option and enter {{current_date}} as the value.



The timezone used for the current date depends on your store's timezone.



Key Rules & Technical Details


  • Timezone: The date follows your store's timezone, not the timezone of your computer.
  • Other metafield types: See the metafields article for other content types.



Troubleshooting Steps


  • Issue: The date shows the wrong day → Solution: Check the timezone set for your Shopify store, since the date follows the store's timezone.
  • Issue: The metafield is not updating → Solution: Check that the metafield was created in Shopify admin under Products/Variants, and that the same metafield is selected in Stock Sync.



Good Articles to Continue


Updated on: 13/11/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!