Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 7 of 7 total |
Validating a date input |
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. timyoung@elevatesoft.com | 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. timyoung@elevatesoft.com | 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 Team Elevate | <<
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 (i.e. day "-5" or whatever is left til release of ewb2) 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 (i.e. day "-5" or whatever is left til release of ewb2) <vbg> Uli |
This web page was last updated on Wednesday, May 15, 2024 at 08:40 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |