File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Griddly.NetCore.Razor/wwwroot/js Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 310
310
// http://stackoverflow.com/q/8098202
311
311
var parseForValidDate = function ( text )
312
312
{
313
-
314
313
var date = Date . parse ( text ) ;
315
314
316
315
if ( isNaN ( date ) )
2020
2019
return this ;
2021
2020
} ;
2022
2021
2023
- const defaultCleanedDate = str => String ( str ) . replace ( / [ ^ 0 - 9 a - z A - Z -\/ ] / g, "" ) ;
2024
- const defaultFormatedDate = str => {
2022
+ var defaultCleanedDate = function ( str ) { return String ( str ) . replace ( / [ ^ 0 - 9 a - z A - Z -\/ ] / g, "" ) ; } ;
2023
+ var defaultFormatedDate = function ( str ) {
2025
2024
var val = parseForValidDate ( str ) ;
2026
2025
return ( val == null || ! isFinite ( val ) )
2027
2026
? null
2028
2027
: ( val . getMonth ( ) + 1 ) + "/" + val . getDate ( ) + "/" + val . getFullYear ( ) ;
2029
2028
} ;
2030
- const defaultFilterDate = strOrDate => {
2029
+ var defaultFilterDate = function ( strOrDate ) {
2031
2030
var date ;
2032
2031
var pos ;
2033
2032
You can’t perform that action at this time.
0 commit comments