Convert Date Format
Posted
by Pankaj Khurana
on Stack Overflow
See other posts from Stack Overflow
or by Pankaj Khurana
Published on 2010-06-09T08:50:15Z
Indexed on
2010/06/09
8:52 UTC
Read the original article
Hit count: 211
php
Hi,
I have a moodle installation in which there is a column in mdl_user table called firstaccess whose type is bigint(10) and contains date in following format 1266839570.
I am writing a query for accessing users according to date filters. For e.g. i want to check which users firstaccess is greater than '2010-04-12'. How can i convert the date? These two date formats are different. I think firstaccess is unix timestamp. Should i change the '2010-04-12' into unix timestamp or there is a way to convert firstaccess i.e 1266839570 to yyyy-mm-dd format.
Please help me on this.
Thanks
© Stack Overflow or respective owner