Ad

Shopify Api Created_at_min Date Format

- 1 answer

I want to retrieve orders only after certain date. Based on DOCUMENTATION

created_at_min is in this format: 2014-04-25T16:15:47-04:00

My database time is as such: 2019-11-20 12:19:57.650

What is their format of time? How can I format to their format type ? My database time is c# Datetime.Now

Ad

Answer

You can use Convert.ToDateTime(s); to convert from string to datetime and also you can convert string to datetiem using ToString

DateTime.Now.ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ss");

For more information you can check this tutorial and this

Ad
source: stackoverflow.com
Ad