This topic is locked

Control dialog API - dropdowns with date default

11/18/2022 5:41:06 AM
PHPRunner General questions
J
jackolantern author

Hi,

I need to use Control dialog API for dropdowns date, after get the current date (formatted as 'dd/mm/yyyy' same as setting format) and set as default value in date control input.
The result its not work, in date input control shown. But show correctly if the value in text input.

admin 11/18/2022

Try to rephrase your question, really hard to understans what you asking.

fhumanes 11/22/2022

Hello,

You have to keep in mind that a JavaScript variable for a string or for a date is not the same.

The code is failing you because you are treating the date like a string.

Look at this part of the manual: https://xlinesoft.com/phprunner/docs/about-date-control-api.htm

Try to take the value with the function: https://xlinesoft.com/phprunner/docs/getstringvalue.htm

Cheers,
Fernando