zhenxin Posted August 3, 2007 Share Posted August 3, 2007 myDay = Day(dateandtime) If Len(myDay) = 1 Then myDay = "0" & myDayWhat does this code mean? wad is Len? Link to comment Share on other sites More sharing options...
justsomeguy Posted August 3, 2007 Share Posted August 3, 2007 Len returns the length of a string. The string "000" has a length of 3. The code says that if myDay is a 1-digit string then it will add a 0 to the start of it. So if myDay is 8, then after the code it will be 08. Link to comment Share on other sites More sharing options...
zhenxin Posted August 5, 2007 Author Share Posted August 5, 2007 Len returns the length of a string. The string "000" has a length of 3. The code says that if myDay is a 1-digit string then it will add a 0 to the start of it. So if myDay is 8, then after the code it will be 08.thx so much.. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.