Hi,
please could you help me with the following problem, I am trying to output time and date received in two separate variables into single variables and then sertxd out the result.
the following code works but I need it to show the zeros before time and date where needed, I am sure its something simple but I cant seem to figure it out but i am sure you guys can make me out to be the simple in this equation.
b18=b18-48*10+b19-48 let b19=0 'Hours
b20=b20-48*10+b21-48 let b21=0 'Mins
b22=b22-48*10+b23-48 let b23=0 'secs
b16=b16-48*10+b17-48 let b17=0 'Day
b14=b14-48*10+b15-48 let b15=0 'Month
b12=b12-48*10+b13-48 let b13=0 'Year
debug
sertxd ("The Time Is ",#b18,":",#b20,":",#b22," The Date Is ",#b16,"/",#b14,"/",#b12,cr)
Thank You
Rich
please could you help me with the following problem, I am trying to output time and date received in two separate variables into single variables and then sertxd out the result.
the following code works but I need it to show the zeros before time and date where needed, I am sure its something simple but I cant seem to figure it out but i am sure you guys can make me out to be the simple in this equation.
b18=b18-48*10+b19-48 let b19=0 'Hours
b20=b20-48*10+b21-48 let b21=0 'Mins
b22=b22-48*10+b23-48 let b23=0 'secs
b16=b16-48*10+b17-48 let b17=0 'Day
b14=b14-48*10+b15-48 let b15=0 'Month
b12=b12-48*10+b13-48 let b13=0 'Year
debug
sertxd ("The Time Is ",#b18,":",#b20,":",#b22," The Date Is ",#b16,"/",#b14,"/",#b12,cr)
Thank You
Rich