ÿþ<HTML> <HEAD> <meta http-equiv="Content-Language" content="cs"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1250"> <title>VBA code</title> </HEAD> </P> <TABLE WIDTH="100%" ALIGN=CENTER CELLSPACING="0" BORDER="0"> <TR> <TD width="27%" align="LEFT" bordercolordark="#000000"><HR><P></TD> <TD ALIGN=CENTER>&nbsp;<P></TD> <TD ALIGN=CENTER>&nbsp;<P></TD> </TR> </TABLE> <style> <!-- a {text-decoration:none} a {color:RED} a {cursor: crosshair;} a:hover {color:WHITE} BODY { SCROLLBAR-FACE-COLOR:"#282828"; SCROLLBAR-HIGHLIGHT-COLOR:"SaddleBrown"; SCROLLBAR-SHADOW-COLOR:"LightSlateGray"; SCROLLBAR-3DLIGHT-COLOR:"LavenderBlush"; SCROLLBAR-ARROW-COLOR:"LightSlateGray"; SCROLLBAR-TRACK-COLOR:"LightSlateGray"; SCROLLBAR-DARKSHADOW-COLOR:"GRAY"; } --> </style> <body leftmargin="0" topmargin="0" marginwidth="0" marginheigt="0" link="BLACK" vlink="BLACK" alink="#C0C0C0" text="LavenderBlush"> <div align="left"> <body bgcolor="#111111"> <TABLE WIDTH="100%" ALIGN=CENTER CELLSPACING="0" BORDER="0"> <TR> <TD ALIGN="LEFT"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT></b></p> </TD> <font face="Arial CE, Helvetica CE, Arial, Helvetica, sans-serif"> <TD ALIGN="LEFT"><b> <font color="LavenderBlush" style="font-size: 14pt">Formatting Date <p align="LEFT"><font color="LavenderBlush" style="font-size: 10pt"> <font face="Arial CE, Helvetica CE, Arial, Helvetica, sans-serif"> Public Sub timing()<BR><BR> &nbsp;&nbsp;&nbsp;&nbsp;Dim dtmDate As Date<BR><BR> &nbsp;&nbsp;&nbsp;&nbsp;Dim strFormat_1 As String<BR><BR> &nbsp;&nbsp;&nbsp;&nbsp;Dim strFormat_2 As String<BR><BR> &nbsp;&nbsp;&nbsp;&nbsp;Dim strFormat_3 As String<BR><BR> &nbsp;&nbsp;&nbsp;&nbsp;Dim strFormat_4 As String<BR><BR> &nbsp;&nbsp;&nbsp;&nbsp;Dim strFormat_5 As String<BR><BR><BR><BR> &nbsp;&nbsp;&nbsp;&nbsp;dtmDate = #5/22/2006#<BR><BR><BR><BR> &nbsp;&nbsp;&nbsp;&nbsp;strFormat_1 = FormatDateTime(dtmDate, vbShortDate)<BR><BR> &nbsp;&nbsp;&nbsp;&nbsp;strFormat_2 = FormatDateTime(dtmDate, vbLongDate)<BR><BR> &nbsp;&nbsp;&nbsp;&nbsp;strFormat_3 = Format(dtmDate, "dd/mmm/yy")<BR><BR> &nbsp;&nbsp;&nbsp;&nbsp;strFormat_4 = Format(dtmDate, "mmmm/yy")<BR><BR> &nbsp;&nbsp;&nbsp;&nbsp;strFormat_5 = Format(dtmDate, "dddd/mm/yy")<BR><BR><BR><BR> &nbsp;&nbsp;&nbsp;&nbsp;MsgBox strFormat_1 & vbCrLf & vbCrLf & strFormat_2 & vbCrLf & _<BR><BR> &nbsp;&nbsp;&nbsp;&nbsp;vbCrLf & strFormat_3 & vbCrLf & vbCrLf & strFormat_4 & vbCrLf & _<BR><BR> &nbsp;&nbsp;&nbsp;&nbsp;vbCrLf & strFormat_5<BR><BR><BR><BR> End Sub <p align="LEFT">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="date.JPG" ALT="MsgBox output"> &nbsp; &nbsp; &nbsp; &nbsp; </FONT></b></p></TD> <BR><P> </TD> <TD ALIGN="LEFT"><b> <p align="LEFT"><font color="LavenderBlush" style="font-size: 14pt"> </FONT> <p align="LEFT"><font color="LavenderBlush" style="font-size: 10pt"> <BR> <BR><P> <BR><P> <BR><P> <BR><P> </TD> </TR> </TABLE> <p align="RIGHT">Main &nbsp; <a href="http://tf.czu.cz/~ales/vba">+</a>&nbsp; &nbsp; &nbsp; &nbsp; <p align="RIGHT"><font color="SILVER" style="font-size: 8pt"> 2006 &nbsp; &nbsp; </BODY> </HTML>