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

About selvam4win

I am Selvam. I am very jolly person and frank one.

Posted on December 4, 2010, in Date, MySql. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: