Problem with math parser function date

Trying to get the file date from .gmic rsp. user.gmic the command

gmic run “e {date([0,1,2,3,4,5],\$_path_user)}”

does not respond reasonably under Windows Win 10, gmic 2.3.3

Result is -1,-1,-1,-1,-1,-1 !

Any idea?

Hmm could be an escaping problem… try this (note the forward slash):

gmic run "e {date([0,1,2,3,4,5],{/$_path_user})}"

Edit: on linux I had to put in an extra backslash too:

gmic run "e {date([0,1,2,3,4,5],{/\$_path_user})}"

The slash helped, thank you, #garagecoder

:thinking: I have win10 but didn’t encounter your problem.