Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date format in VB.NET
Message
De
20/05/2003 00:19:12
 
 
À
20/05/2003 00:15:38
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00790262
Message ID:
00790275
Vues:
18
>I'm not sure if it's the same in VB as it is in C#, but in C# a datetime object can be manipulated with various methods to get the date in various formats. I don't know if this answers your question or not.

What I meant is where the default format is coming from? For example, presently, inside the ASP.NET Web Service, whatever date I received, is received in dd/mm/yyyy. I'm just wondering where this setting is coming from.

To be sure, I have defined this small function which always return the date in the format I want:
' Return the date in French format
' expD1 Date
Private Function GetDate(ByVal tdDate As Date) As Date
   Return Format(tdDate, "dd/MM/yyyy")
End Function
But, I was just curious to know if this is coming from the OS setting or from a setting inside the Web Service environment.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform