Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel sortby varchar date

$items = DB::table("mytable")->where('userId','=',$userId)->orderByRaw("DATE_FORMAT('d-m-Y',startDate), ASC")->get();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #sortby #varchar #date
ADD COMMENT
Topic
Name
2+8 =