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 310310 // http://stackoverflow.com/q/8098202
311311 var parseForValidDate = function ( text )
312312 {
313-
314313 var date = Date . parse ( text ) ;
315314
316315 if ( isNaN ( date ) )
20202019 return this ;
20212020 } ;
20222021
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 ) {
20252024 var val = parseForValidDate ( str ) ;
20262025 return ( val == null || ! isFinite ( val ) )
20272026 ? null
20282027 : ( val . getMonth ( ) + 1 ) + "/" + val . getDate ( ) + "/" + val . getFullYear ( ) ;
20292028 } ;
2030- const defaultFilterDate = strOrDate => {
2029+ var defaultFilterDate = function ( strOrDate ) {
20312030 var date ;
20322031 var pos ;
20332032
You can’t perform that action at this time.
0 commit comments