View Full Version : Need Help with SYSTEM.GETDate
clientele
04-04-2005, 05:49 PM
Below is what im working with, but I need the date to make "image22" visable from 04/14/2005 to 12/31/2005. Any help would be welcome thanks in advance.
if System.GetDate(DATE_FMT_US) == "04/14/2005" then
Label.SetVisible("Image22", true);
Easiest way is to use DATE_FMT_ISO, strip the "-" out of the date, then compare the numbers.
nToday = String.ToNumber(String.Replace(System.GetDate(DATE _FMT_ISO), "-",""))
-- 04/14/2005 = 20050414
-- 12/31/2005 = 20051231
if nToday >= 20050414 and nToday <= 20051231 then
Image.SetVisible("Image22", true)
else
Image.SetVisible("Image22", false)
end
clientele
04-04-2005, 11:59 PM
Thank you , thank you! It works perfect.
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.