very simple Dim d As Date Dim s As String
d = Now Print d s = Str(d) Print s s = Replace(s, ".", "") s = Replace(s, ":", "") s = Replace(s, " ", "") Print s 2012/2/7 abbat <abbat...@mail.ru> > > How to get a Date without any separators, splash and dots? > > In VB.NET I can get it by: > Dim T = Now.ToString("MMddyyyyHHmmss") > > I get "02062012192533" > > In "HOW TO" I could not find such exemple. > > Thanks > -- > View this message in context: > http://old.nabble.com/Date-to-string-MMddyyyyHHmmss-tp33277051p33277051.html > Sent from the gambas-user mailing list archive at Nabble.com. > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- ____ С уважением Алексей. ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user