Subject: date format
Posted By: Sheikha Post Date: 9/15/2004 2:44:43 AM
Hi:

how can i fix the date format of a textbox to dd/mm/yyyy and display a message when a user eneters another format.

Reply By: Santhi Reply Date: 9/15/2004 3:05:43 AM
Seperate dd,mm,yyyy and format as DD(eg.09),MM(eg.08),YYYY(eg.2004) and Check for the DD's length is 2& day is correct and  MM's length is 2&less than 12.If it is not then throw the error.

Reply By: pradeep_itguy Reply Date: 10/8/2004 4:36:38 AM
Use regular expression to check the Date the user entered in the textbox and display message accordingly.



It is not how much we do,
but how much love we put in the doing.

-Mother Theresa
Reply By: stu9820 Reply Date: 10/8/2004 7:15:45 AM
Or force the user to use already formatted data.

http://www.eworldui.net/CustomControls/CalendarPopupDemo.aspx



Go to topic 20321

Return to index page 750
Return to index page 749
Return to index page 748
Return to index page 747
Return to index page 746
Return to index page 745
Return to index page 744
Return to index page 743
Return to index page 742
Return to index page 741