Welcome Guest, Not a member yet? Register   Sign In
Formatting a date in a view.
#4

[eluser]PravinS[/eluser]
you need to use DATE_FORMAT function of mysql in you MySQL query, not in view file

but if you want to use in your view then you need to use date() function of php, for that you have to convert your "podate" value in timestamp format and use the date function

http://php.net/manual/en/function.date.php


Messages In This Thread
Formatting a date in a view. - by El Forum - 06-18-2013, 10:32 PM
Formatting a date in a view. - by El Forum - 06-18-2013, 11:11 PM
Formatting a date in a view. - by El Forum - 06-18-2013, 11:53 PM
Formatting a date in a view. - by El Forum - 06-19-2013, 12:08 AM
Formatting a date in a view. - by El Forum - 06-19-2013, 03:41 AM
Formatting a date in a view. - by El Forum - 06-19-2013, 07:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB