current date different format

133 views
Skip to first unread message

TruePT

unread,
Jun 26, 2021, 8:16:41 PM6/26/21
to Autofill Chrome Extension
Hi

 im trying to automate a form with the today date format, saw the youtube video tutorial and managed to work with in variable tab with:

today = javascript:(new Date()).toLocaleDateString('pt-PT', {day:'numeric', month:'numeric', year:'numeric'})

and with {@today} on the field i want

the only problem is that im getting the data as DD/MM/AAAA format and needed it to be in DD-MM-AAAA 

Anyone know how i can change the / to - ? already tryed some tips but still couldnt figure how to make it work

Thanks for the help

Autofill Chrome Extension

unread,
Jun 28, 2021, 1:00:57 AM6/28/21
to Autofill Chrome Extension

TruePT

unread,
Jun 28, 2021, 4:53:38 PM6/28/21
to Autofill Chrome Extension
was just that, changed to the correct one instantly!

thanks for your help :)

Reply all
Reply to author
Forward
0 new messages