I'm using this to print a formatted date:

Draw.Text("Date and Time: " & CDate(Server.DateCurrent) & " (" & 
Format$(CDate(Server.DateCurrent), "hh:nn:AM/PM") & ")", 32, ystart - 1)

It seems that Format$ actually changes the value of Server.DateCurrent, 
making it AM when it should be PM. Format$ is actually forcing the hour 
to be between 1 and 12. Shouldn't Format$ simply return a value and not 
overwrite the expression?

-- 
Kevin Fishburne
Eight Virtues
www: http://sales.eightvirtues.com
e-mail: sa...@eightvirtues.com
phone: (770) 853-6271


------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to