BiancoBellucci
Member
Posted 1 year ago #
Hi folks,
I have front end form where users insert time in dd/mm/yyyy format. We do it like that in Europe.
This value is then being passed to wp database as meta value.
Is there any way to modify this format to yyyy-mm-dd before being stored to wpdb?
Yeah, depending on how you're saving the data.
If you wrote the part that saves the data (probably using update_postmeta()), you can just do some string manipulation there. In fact you could save anything you want as the postmeta.