I am importing a field into wordpress using WP All Import plugin (XML import). Field name is “ExpiryDate”. Date is in the format “dd/MM/yyyy hh:mm:ss”. I need to convert it to the format “yyyy-MM-dd hh:mm:ss”.
Either this needs to be done via custom function or single line code. Can you guys please help me?
I tried to search online but could not find anything which address the problem via custom function or single line code.