Link to home
Start Free TrialLog in
Avatar of indyng
indyng

asked on

How can I get the format dd:mm:yy hh:nn AMPM from dd:mm:yy hh:nn:ss AMPM?

Hi Experts,

How can I get the format dd:mm:yy hh:nn AMPM  from dd:mm:yy hh:nn:ss AMPM?

Basically I want the seconds to drop out.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of esw074
esw074

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ksbhat
ksbhat

Dim Time
Dim TimePart
Dim TimeSplit

Time = FormatDateTime(Now(), 3)

TimePart = split(Time," ")
TimeSplit = split(TimePart(0),":")

Response.write date() & " " & TimeSplit(0) & ":" & TimeSplit(1) & " " & TimePart(1)