Guys , sorry if this seems like a stupid request but I'm pulling out my hair..
I have in my client side script
var end = new Date(getField("DateTime1",""));
and I want to get the format into dd/mm/yyyy so that I can perform a date calculation, end - todays date. Any clues appreciated.