I want to compare two files using diff command. However, due to different date format in both the files it not compared

**File1**

```
394|a101|2019-04-08 09:45:01|2019-04-08 09:45:01
389|a102|2019-04-08 09:46:02|2019-04-08 09:46:02

```

**Files2**

```
394|a101|20190408094501000000|20190408094501000000
389|a102|20190408094602000000|20190408094602000000

```

Above both the files are same but only date format is different. 

I have tried to remove Hyphen & Colon from the string and then compare but it might possible that same symbol might available in other columns 

Plz suggest how can I compare both files. (Date columns comes on any position in file)