hi,

i needed to extract the current hours, min and sec from the system time and store it in 3 variables - h, m and s. but i am unable to extract the min. hour and sec can be extracted correctly. i am using this code. could you kindly point out as to where i'm going wrong --


h = Format(Time, "HH")
m = Format(Time, "MM")
s = Format(Time, "SS")

m is always displayed as 12.

thanks.