Is it possible to pass a piped date as an argument for a function?
I am thinking of something along the lines of...
- A variable date: stringthat will be assigned a value passed from a datepicker
- The date picker currently outputs date values in the format:
Fri Feb 09 2018 00:00:00 GMT+0000 (GMT Standard Time) 
- It is possible to display the date in binding with use of date | date:'yyyy-MM-dd'
I am wanting to pass into a function, that piped date - something like:
someFunction(date | date:'yyyy-MM-dd');
Is there any way that this could be possible?
Or will I have to pass the original long date into a function, mutate it and then use it?
