Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIWBSInput and Date type input
#1
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?
Reply


Messages In This Thread
TIWBSInput and Date type input - by Comograma - 12-16-2020, 12:53 PM
RE: TIWBSInput and Date type input - by kudzu - 12-16-2020, 03:17 PM
RE: TIWBSInput and Date type input - by Comograma - 12-16-2020, 03:43 PM
RE: TIWBSInput and Date type input - by kudzu - 12-16-2020, 04:45 PM
RE: TIWBSInput and Date type input - by Comograma - 12-16-2020, 06:18 PM
RE: TIWBSInput and Date type input - by kudzu - 12-17-2020, 06:59 PM
RE: TIWBSInput and Date type input - by Comograma - 12-18-2020, 10:27 AM
RE: TIWBSInput and Date type input - by kudzu - 12-18-2020, 05:20 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)