<%@ Page %>
<script language="vb" runat="server">
Sub Page_Load(sender As Object, e As EventArgs)
Dim date1, date2 As DateTime
date1=Convert.ToDateTime("12/25/2008 05:30:00")
Dim formatInfo As New System.Globalization.DateTimeFormatInfo()
formatInfo.DateSeparator="~"
formatInfo.TimeSeparator="."
date2=Convert.ToDateTime("12~25~2008 05.30.00", formatInfo)
Response.Write(date1.ToString() & "<BR>")
Response.Write(date2.ToString())
End Sub
</script>
<html>
<body>
<form id="form1" method="post" runat="server">
</form>
</body>
</html>
|