[[getImageList? &tvname=`Events` &tpl=`EventLoopTpl` &where={expires:>":"NOW()"} &sort=`[{"sortby":"expires","sortdir":"ASC"}]` &limit=`2` ]]This question has been answered by doglegdesign. See the first response.
<?php
return date("Y-m-d H:i:s");[[getImageList? &tvname=`Events` &tpl=`EventLoopTpl` &where=`{"expires:>":"[[RANow]]"}` &sort=`[{"sortby":"expires","sortdir":"ASC"}]` &limit=`2` ]]&where=`{"expires:>":"[[!now]]"}`return strftime('%Y-%m-%d %H:%M:%S');[[!getImageList]]
[[!RANow]]

{"expires:>":"[[!now]]"}within the CMP's MIGXDB-settings Where field, it doesn't seem to be working?
{"expires:>":"[[now]]"}
{"expires:>":"2017-01-11 00:00:00"}