Hi,
I'm trying to set a date field via java-script; however cannot seem to get the formatting it requires correct.
I have tried multiple different date formats e.g. 'dd/MM/yyyy' but cannot find the one it requires.
https://docs.microsoft.com/en-us/dotnet/standard/base-types/standard-date-and-time-format-strings

$( document ).ready(function() {
// attempt 1
$("#xxx_yearofjoiningthesociety").val("{{ mem.c2memb_fromdate | date_to_iso8601 }}").addClass("readonly");
// attempt 2
$("#xxx_yearofjoiningthesociety").val("{{ mem.c2memb_fromdate | date:'d' }}").addClass("readonly");
// attempt 3
$("#xxx_yearofjoiningthesociety").val("{{ mem.c2memb_fromdate | date:'g' }}").addClass("readonly");
// attempt 4
$("#xxx_yearofjoiningthesociety").val("{{ mem.c2memb_fromdate | date:'dd/MM/yyyy' }}").addClass("readonly");
});
@OOlashynmentioned something similar in another thread but could not see the formatting
Thanks,