VB DateTime.Parse vs. Format

  • Thread starter Thread starter Lucas Tam
  • Start date Start date
L

Lucas Tam

Is there an advantage to using DatTime.Parse vs. Format?

Just curious, thanks.
 
Lucas Tam said:
Is there an advantage to using DatTime.Parse vs. Format?

The first converts a string to a Date, the latter converts a value (not only
dates) to a string - if I understand you right.
 
Lucas,

Is there an advantage to using DatTime.Parse vs. Format?

In normal circumstances this kind of operations takes ignorable time in
comparison to intern operations on the screen. So that you in my opinion
only have to think about what is for you the most efficient and the most
readable after a while.

I shall start thinking about this kind of things, when a program has to do
1.000.000.000 transactions in one hour or more.

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top