Sep 26, 2003 #1 ef61778 IS-IT--Management Sep 23, 2003 14 US How would I convert the Date type to format yyyymmdd I have: Dim strCGID As String Dim yyyymmdd As Date strCGID = "DA" & yyyymmdd I would like strCGID to be DA20030926 However I am getting DA12:00AM
How would I convert the Date type to format yyyymmdd I have: Dim strCGID As String Dim yyyymmdd As Date strCGID = "DA" & yyyymmdd I would like strCGID to be DA20030926 However I am getting DA12:00AM
Sep 26, 2003 #2 poltergeist Programmer Jul 16, 2003 173 CL strCGID = "DA" & Format(date,"yyyymmdd" peterguhl@yahoo.de Upvote 0 Downvote
Sep 26, 2003 #3 vladk Programmer May 1, 2001 991 US Dim strDate As String strDate = Format$("09/07/2003", """D""" & "A:YYYYDDMM" MsgBox strDate Upvote 0 Downvote
Dim strDate As String strDate = Format$("09/07/2003", """D""" & "A:YYYYDDMM" MsgBox strDate
Sep 26, 2003 #4 zemp Programmer Jan 27, 2002 3,301 CA Try this, Code: Debug.Print "DA" & Format(Date,"yyyymmdd") Thanks and Good Luck! zemp Upvote 0 Downvote
Try this, Code: Debug.Print "DA" & Format(Date,"yyyymmdd") Thanks and Good Luck! zemp
Sep 26, 2003 #5 poltergeist Programmer Jul 16, 2003 173 CL >> Dim yyyymmdd As Date You have created a variable named yyyymmdd with type data but it's not a definition of a format. peterguhl@yahoo.de Upvote 0 Downvote
>> Dim yyyymmdd As Date You have created a variable named yyyymmdd with type data but it's not a definition of a format. peterguhl@yahoo.de