Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Format and date (VB6 Enterprise)
Message
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00338526
Message ID:
00338533
Vues:
22
>Im trying to concatinate a string like so "???2000FEB.rep" while building the file name I ran across the following behaviour.
>When I issue a:
>? format(month(date),"MMM")
>I get
>Jan
>When I issue a:
>? date()
>I get:
>2/28/00
>So My system date isn't set for last month ... Whats up with this?

Don't extract the month before passing it to the format function (? format(date,"MMM"))

You should try this: ? "abc" & format(date,"yyyymmm") & ".rep"
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform