How to get 2004/04/04's length

  • Thread starter Thread starter jiangyh
  • Start date Start date
J

jiangyh

hi there:

I want to get 2004/04/04's length.
How to achieve this.

thanks a lot.
jiangyh
 
jiangyh said:
hi there:

I want to get 2004/04/04's length.
How to achieve this.

thanks a lot.
jiangyh
The length when converted to string?

datetime dt = datetime.now;
int len = dt.toshortdatestring().length;

Is this what you were after?
JB
 

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