Get Largest date

CREATE FUNCTION fn_greatest_date (@date_1 datetime, @date_2 datetime, @date_3 datetime) RETURNS datetime AS BEGIN DECLARE @return_date datetime SELECT @return_date = MAX(dateval) FROM ( SELECT @date_1 AS dateval UNION ALL SELECT @date_2 UNION ALL SELECT @date_3 ) datesCREATE FUNCTION fn_greatest_date (@date_1 datetime,…Continue Reading →

Check if an image exits.

Javascript can be used to check if an image exist. An AJAX call cannot be used, because cross-site calls are not supported. However, the javascript Image object can be used for this purpose. var img = new Image();var img =…Continue Reading →