B
Bogdan
Hi,
I primarily develop in c/c++ but need to write a relatively simple code in
cs.
I need to parse year, month, and day from strings representing dates as
'yyyymmdd'.
What is the most efficient (speed-wise and memory-wise) way to do that in
cs?
I could use string.IndexOf()/string.Substring()/Int32.Parse() combination
but this seems to create a lot of new string objects.
Is there a better way?
Thanks,
Bogdan
I primarily develop in c/c++ but need to write a relatively simple code in
cs.
I need to parse year, month, and day from strings representing dates as
'yyyymmdd'.
What is the most efficient (speed-wise and memory-wise) way to do that in
cs?
I could use string.IndexOf()/string.Substring()/Int32.Parse() combination
but this seems to create a lot of new string objects.
Is there a better way?
Thanks,
Bogdan