[真诚求助]ASP字符串转换为日期
程序1:我想在name="dDate1"的input框中输入一字符串,然后提交到b14.asp
程序1:
<form method="post" action="b14.asp" target="_blank">
<table width="200" height="70" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="30">
<input class="myinput1" type="text" name="dDate1" value="" maxlength="10">
</td>
</tr>
<tr>
<td height="35" align="center">
<input class="myinput2" type="submit" value="执行">
</td>
</tr>
</table>
</form>
程序2:获得此字符串后将其转换为日期,然后更新表CheckW中对应的字段SDate
<%
......(连接数据库省略)
Date1=Request.Form("dDate1")
NS.Execute "Update [CheckW] set SDate="& Date1 &""
......
%>
问题:
1.name="dDate1"的input框中我想以2008-11-26或11/26/08的形式输入.
2.程序2中该如何对字符串进行转换?
代码如何写?