Category Archives: Date

Handle date in Mysql Date field

Date From: 10/26/2010 [1282761000] To: 10/29/2010[1283020200]

select FieldName, FieldValue, UNIX_TIMESTAMP(concat(SUBSTRING(FieldValue,7,4), ‘-’, SUBSTRING(FieldValue,1,2), ‘-’, SUBSTRING(FieldValue,4,2))) as last_modified_date from jos_rsform_submission_values where FieldName like ‘%date%’ having last_modified_date>= 1282761000 and last_modified_date<=1283020200

Follow

Get every new post delivered to your Inbox.