'Date' object availability in Script Editor

Stephen_Baker
Shopify Partner
7 1 4

Is the 'Date' object not available in the Script Editor?

 

I get an "uninitialized constant Date" error when I try to use it.

 

(Goal is to hide a particular shipping method on certain days of the week.)

Replies 4 (4)

georgeadamson
Visitor
1 0 1

Hi there, did you ever find a solution for handling Date or DateTime in a Shopify Script?

(We have a similar requirement to parse a date and react differently)

Stephen_Baker
Shopify Partner
7 1 4

Unfortunately no.  It looks like we will need Shopify to make this object/method available.

ashleighyslop
Visitor
1 0 0

Hi Stephen, 

Do you know how we can request this please?

dakshyafreond
Shopify Partner
30 0 3

Have you managed to fix it? @Stephen_Baker @ashleighyslop @georgeadamson 

Founder at Dakshya Freondtech (https://dakshyafreondtech.com)
1. Synkron (https://apps.shopify.com/synkron-1) - Multi channel inventory sync app
2. Reporting Agent (https://www.reportingagent.com) - Multi channel reporting tool