> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.stock-sync.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

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

To update the metafield date, two steps need to be followed:

### Set Up in Shopify Admin

* Navigate to **Settings > Custom Data > Products/Variants > Add Definition**.

![](https://storage.crisp.chat/users/helpdesk/website/b219050a5836c000/ezgifcom-video-to-gif-converte_1vmk2dd.gif)

### How to Configure in Stock Sync

* Select the **Metafield** option in Stock Sync.

* Choose the field set up in Shopify admin.

![](https://storage.crisp.chat/users/helpdesk/website/b219050a5836c000/screenshot-2024-06-11-at-11340_qv5sj2.png)

* Use the static value option and add the value as {{current_date}} so it will take the current date. 


|| When setting the current date, the timezone will depend on the store's timezone. Click [here](https://help.stock-sync.com/en/article/metafields-ptbnev/?bust=1716363145309) to learn more about other metafield content types. 


