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
- Select the Metafield option: In Stock Sync, choose the Metafield option.
- Choose your Shopify field: Select the metafield you created in Shopify admin.
- Enter the current date: Use the static value option and enter
{{current_date}}as the value.

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
- Metafields → Learn about the other metafield content types you can use.
- Custom Text Formatting in Matching Column (Step 2) → Add static text or column values to mapped fields.
Updated on: 13/11/2026
Thank you!
