Funny you mention, I just wrote this: Dim midnight As Date Dim seconds As Integer midnight = DateAdd(Date, gb.day, 1) TextBox1.Text = DateDiff(Now, midnight, gb.Second)
Need to validate it then maybe I can assume any value < say 5 seconds is midnight. -- View this message in context: http://gambas.8142.n7.nabble.com/Best-method-to-trigger-event-at-midnight-tp41408p41414.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user