Hope you guys can help me here… I run an invoicing system through wix and my business relies all on this.
Have this function to create a date in text format. Haven’t touched for almost a year and has been working fine until yesterday?
I’ve got an afterQuery calling this functions, and now if I don’t disable anythig the has a getDate() function or anything realated to date it won’t load the Collection and let me access the data?
Below are some examples that were working fine until yesterday
function createdate ( create ) { const days = create . getDate (); const months = create . getMonth () + 1 ; const year = create . getFullYear ();
let createDate = days + “/” + months + “/” + year return createDate ;
function ageFromDob ( birthday ) { const now = new Date (); const days = now . getDate () - birthday . getDate (); const months = - now . getMonth () + birthday . getMonth (); let age = now . getFullYear () - birthday . getFullYear () - months / 12 ; return age . toFixed ( 1 );