Date conversion from US format date to UK, adaptable example of how to use the split function.

<%
Dim MyString, UKDate, USDate
MyString = Request.Form("Date")
UKDate = Split(MyString, "/", -1, 1)
' UKDate(0) contains "DD".
' UKDate(1) contains "MM".
' UKDate(2) contains "YY".
USDate = UKDate(1) & "/" & UKDate(0) & "/" & UKDate(2)
%>




If you like what you see, please link to NetEvolution.co.uk from your site!