Insert Date Field in Plugin

By daniel - August 26, 2019

Hi Ryan,

If you're using a date field, you should be able to use the following snippet to retrieve the correct format:

$colsToValues['refDate']  = sprintf("%04d-%02d-%02d %02d:%02d:%02d", $_REQUEST["masterRefDate:year"], $_REQUEST["masterRefDate:mon"], $_REQUEST["masterRefDate:day"], _getHour24ValueFromDateInput("masterRefDate"), (int) @$_REQUEST["masterRefDate:min"], (int) @$_REQUEST["masterRefDate:sec"]);

Let me know if that does the trick!

Thanks,

Daniel
Technical Lead
interactivetools.com

By Ryan - August 27, 2019

Worked perfectly, thanks Daniel.