Click here to Skip to main content
15,881,092 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I am handling a project at my present company. I come across a strange code:

<%?[FLD_DOB];%>

It is printing Date in yyyy/mm/dd format

I want to change format to mm/dd/yyyy


I have tried a lot but I seen that we can call vbscript function.

I tried: <%?FormatDateTime([FLD_DOB]);%>

But it retuned error.

I also tried to assign its value to variable but failed.
<script language="vbscript">
dim i
i=<%?[FLD_DOB];%>

dim j
j=FormatDateTime(Cdate(i),2)
document.write(j)
</script>

Not worked. Please guide me how to handle this thing: <%?[FLD_DOB];%>
Posted
Comments
joshrduncan2012 2-Aug-13 17:07pm    
Why doesn't it work? Are you getting different output than what you expect or are you getting error messages? "Not worked" doesn't help us.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900