jwcolby
jwcolby at colbyconsulting.com
Wed May 7 07:05:31 CDT 2008
Thanks for that Shamil. John W. Colby www.ColbyConsulting.com Shamil Salakhetdinov wrote: > Hi John, > > Please make correction to your string formatting: > > Dim dt as String = string.Format("{0:yyyyMMdd_HHmmss}", DateTime.Now) > Console.WriteLine(dt) > > IOW, use uppercase 'HH' instead of lowercase 'hh' - the latter gives the > hour value in 00 - 11 range, and you might get file names collisions: yes, > very low probability to get such collisions but "Murphy Laws" are waiting > us, developers, around every corner, you know, and we have to be very > accurate, and a little bit "paranoid"... > > Thanks. > > -- > Shamil