Saturday, 10 March 2012

Fetch Current Date In .net

CURRENT DATE:---


TEXTBOX1.TEXT = DATETIME.TODAY.TOSTRONG("dd/MM/yyyy");


"MMM" :- JAN/FEB            to display month name
"MM"  :- 02                          to display month digit
"d"   :- 01/01/2000                to display Short Date
"D"  :- 01 Jan 2000               to display Long Date
"t"   :- 01:24                          to display Short Time
"T"   :- 01:24:59                    to display Long Time