sknowlton
06/25/2022, 3:15 PMtype
do people use to validate dates for SQL datetimes? values like 20200101
pass the isValid( "date")
check, and I know there's usdate
but the lucee docs say not to use thatzackster
06/25/2022, 3:18 PMsknowlton
06/25/2022, 3:22 PMzackster
06/25/2022, 3:59 PMsknowlton
06/25/2022, 5:45 PMsknowlton
06/25/2022, 5:46 PMzackster
06/25/2022, 6:15 PMsknowlton
06/25/2022, 6:40 PM20200101
parses to a date but then fails as a SQL param because CF sends {ts '20200101-01-01 00:00:00'},
sknowlton
06/25/2022, 6:40 PMsknowlton
06/25/2022, 6:41 PMScott Steinbeck
06/26/2022, 4:52 AMhttps://c.tenor.com/Oo6exgunJ0IAAAAC/oh-snap-burn.gif▾
Scott Steinbeck
06/26/2022, 4:54 AMcase "date": {
r = isValid( "date", arguments.targetValue );
break;
}
Scott Steinbeck
06/26/2022, 4:59 AMdateMatchesFormat(date,'mm-dd-yyyy')
wil-shiftinsert
06/28/2022, 5:55 PMwil-shiftinsert
06/28/2022, 5:57 PMsknowlton
06/28/2022, 6:36 PMwil-shiftinsert
06/28/2022, 6:41 PMwil-shiftinsert
06/28/2022, 6:44 PMRyan Albrecht
06/29/2022, 1:46 PMwil-shiftinsert
06/29/2022, 6:01 PMsknowlton
06/29/2022, 6:02 PMwil-shiftinsert
06/29/2022, 6:10 PMsknowlton
06/29/2022, 6:12 PMwil-shiftinsert
06/29/2022, 6:17 PMScott Steinbeck
06/30/2022, 11:08 PM