PHP to JavaScript - has time passed -


I am trying to figure out how to do the following in JavaScript:

  If (Stratotime ($ row ['last_active']) (time () - (30))} {// update ...}   

$ line [ 'Last_active'

Any idea? Use the library:

  Var then = new xdate ('& lt;? = $ Row [' last_active ']? & Gt;'); var now = new XDate (); days_between = now.diffDays (then);   

There is also

You can also query ...

  SELECT last_active, DATEDIFF (CURDATE ( ), In Mm_activ) AS_last_active   

or:

  select last_active, DATEDIFF (stringent (last, active)> 30 is_inactive   

DATEDIFF () may need to be used on DATE () :

  DATEDIFF (CURDATEF) DATE (last_active))    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -