I am working with a MySQL Database where the data that I need is in a single column that is formatted as longtext
. I am pulling the data out of the table with the following query. I need to format the Date
column as a Date Colum in the following format mm-dd-yy
so that the front end Database utility can filter by date or date range.
SELECT entry_id,
GROUP_CONCAT(IF(field_id='fld_5076430', value,'') SEPARATOR '') AS user,
GROUP_CONCAT(IF(field_id='fld_8768091', value,'') SEPARATOR '') AS first,
GROUP_CONCAT(IF(field_id='fld_9970286', value,'') SEPARATOR '') AS last,
GROUP_CONCAT(IF(field_id='fld_6009157', value,'') SEPARATOR '') AS date,
GROUP_CONCAT(IF(field_id='fld_5105414', value,'') SEPARATOR '') AS event,
GROUP_CONCAT(IF(field_id='fld_7723931', value,'') SEPARATOR '') AS unit,
GROUP_CONCAT(IF(field_id='fld_1521970', value,'') SEPARATOR '') AS work,
GROUP_CONCAT(IF(field_id='fld_4590434', value,'') SEPARATOR '') AS hours
FROM kcdte_cf_form_entry_values
GROUP BY entry_id;
Thank you for your help.
Without more information, you could simply use:
STR_TO_DATE("string", "%M %d %Y")
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments