Skip to Content
0
Former Member
May 28, 2008 at 10:44 AM

validations with date(Adding zero's)

22 Views

Hi,

can anyone tell me regarding this:

if the date is 5/5/2008 - the output should be 05/05/2008, means 0 should be concatenated in month and date.

else if date is 5/12/2008 - the output should be 05/12/2008

means 0 should be concatenated only in front of 5.

please help.