![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 7 of 7 total |
![]() |
Thu, May 14 2015 2:13 PM | Permanent Link |
Uli Becker | After some time of searching I need help:
how can I check if an input (edit field) contains a valid date? (Without using a DatePicker). Thanks. Uli |
Thu, May 14 2015 2:40 PM | Permanent Link |
Uli Becker | |
Fri, May 15 2015 9:39 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | Uli,
<< how can I check if an input (edit field) contains a valid date? (Without using a DatePicker). >> In EWB 2, you have these in the WebCore unit: function IsDate(const Value: String): Boolean; function IsTime(const Value: String): Boolean; function IsDateTime(const Value: String): Boolean; But, they are simply just try..except wrappers around the StrToDate, StrToTime, etc. functions, so they'll work just as well with EWB 1. Tim Young Elevate Software www.elevatesoft.com |
Fri, May 15 2015 11:56 AM | Permanent Link |
Uli Becker | Tim,
> In EWB 2, you have these in the WebCore unit: > > function IsDate(const Value: String): Boolean; > > But, they are simply just try..except wrappers around the StrToDate, > StrToTime, etc. functions, so they'll work just as well with EWB 1. I tried StrToDate in a try...except block with no success. And: if isDate('Elevatesoft') then showmessage('isDate = true') else showmessage('isDate = false'); results in "isDate = true"! Uli |
Fri, May 15 2015 12:54 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | Uli,
<< I tried StrToDate in a try...except block with no success. And: if isDate('Elevatesoft') then showmessage('isDate = true') else showmessage('isDate = false'); results in "isDate = true"! >> Yeah, they're missing some exceptions that I thought were in there. ![]() I'll add them now. Tim Young Elevate Software www.elevatesoft.com |
Fri, May 15 2015 1:12 PM | Permanent Link |
Raul ![]() | <<
Uli Becker wrote: if isDate('Elevatesoft') then showmessage('isDate = true') else showmessage('isDate = false'); results in "isDate = true"! >> Result is correct in philosophical sense in that this is the start of new era in JS development ![]() Raul |
Fri, May 15 2015 1:27 PM | Permanent Link |
Uli Becker | Raul,
> Result is correct in philosophical sense in that this is the start of new era in JS development ![]() <vbg> Uli |
This web page was last updated on Wednesday, April 23, 2025 at 06:31 AM | Privacy Policy![]() © 2025 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |