I have a TIWBSInput component to input a date and to load it from a database table field, type date.
This TIWBSInput is of type bsitDate, e.g., TIWBSinput.InputType := bsitDate.
When inputing I have no problem because I have the placeHolder on the field before input that shows me how to do it.
Where I do something like this:
MyComponentDate.Text := DateToStr(MyQuery.FieldByName('birthdayDate').AsDate);
or
MyComponentDate.Text := MyQuery.FieldByName('birthdayDate').AsString;
I get an error saying that it's an invalid date.
If my application is running as an application, that's ok but when I run it as a Windows Service, I'll get the error.
I know why this happens and that is because the regionals from the SYSTEM account, where the service is running, are different from the ones of the user account that is browsing the application on the browser.
How can I workaround this? How can I get the input pattern presented on the field?
This TIWBSInput is of type bsitDate, e.g., TIWBSinput.InputType := bsitDate.
When inputing I have no problem because I have the placeHolder on the field before input that shows me how to do it.
Where I do something like this:
MyComponentDate.Text := DateToStr(MyQuery.FieldByName('birthdayDate').AsDate);
or
MyComponentDate.Text := MyQuery.FieldByName('birthdayDate').AsString;
I get an error saying that it's an invalid date.
If my application is running as an application, that's ok but when I run it as a Windows Service, I'll get the error.
I know why this happens and that is because the regionals from the SYSTEM account, where the service is running, are different from the ones of the user account that is browsing the application on the browser.
How can I workaround this? How can I get the input pattern presented on the field?