Page 1 of 1

How do i format a date in a textbox?

Posted: Fri Aug 31, 2007 7:12 am
by Fabio Pagano
I have tried

{Format("{0:MM.dd.yyyy}", "{Today}")}

but didn't work.

Thanks.

How do i format a date in a textbox?

Posted: Fri Aug 31, 2007 8:06 am
by Edward
Please use the following expression instead:

Code: Select all

{System.String.Format("{0:MM.dd.yyyy}", Today)}
Thank you.

How do i format a date in a textbox?

Posted: Fri Aug 31, 2007 8:22 am
by EDV Gradl
I often use this:

{Today.ToShortDateString()}

Marco