Hi, i got wrote the DataFormatString="{0:dd/MM/yyyy}" but the date format still in
"dd-MM-yyyy" .What should i add in to turn to dd/MM/yyyy?? Thanks.

hi i am not sure if this is what you looking for but try this link it might help
http://www.tizag.com/aspTutorial/aspDate.php

one other thing you can use is the cdate function like this

mydate = "01-12-2012"
newdate = cdate (mydate)

that will change it to 1/12/2012

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.