You should be able to drop this code onto the page where you
want the time
to appear.
This is just a quick and dirty chunk of code that I put
together and have
not tested.
Please bear in mind that I do not code in ServerSide
JavaScript (I use
VBScript) so the code might not be accurate...
<%
var now = (appointment.Fields.Item("AP_AppointTime").Value)
var hour = now.getHours();
var minute = now.getMinutes();
var ampm = "AM";
if (hour>11){
ampm = "PM";
}
response.write(hour + ":" + minute + " " + ampm);
%>
I hope that helps.
Cheers,
Rob
http://robgt.com/ [Tutorials and
Extensions]
Firebox stuff:
http://robgt.com/firebox
Skype stuff:
http://robgt.com/skype
SatNav stuff:
http://robgt.com/satnav