Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dates in sentences 3

Status
Not open for further replies.

dbpcar

Programmer
Mar 1, 2001
39
US
I have a concatentate sentence that includes a date. The date comes up in number format, not date format
="not funded as of "&N2 n2 has the date in it.
It comes up 37666 or some such, the absolute reference. Is there a way to convert this to a date that is recognizable?
dbpcar
 
Something like this should work.


="not funded as of "&MONTH(N2)&"/"&DAY(N2)&"/"&YEAR(N2)

HTH,
Eric
 
="not funded as of "&text(n2,"mm/dd/yyyy")

I banged my head with this same issue yeaterday for about half an hour.


Mike
 
="not funded as of " & MONTH(N2) & "/" & DAY(N2) & "/" & YEAR(N2)



Blue [dragon]

If I wasn't Blue, I would just be a Dragon...
 
Hi,

If you embed dates in strings alot, you might want a user-defined function like this ...
Code:
Function Date_String(dDate As Date) As String
    Date_String = Month(dDate) & "/" & Day(dDate) & "/" & Year(dDate)
End Function

="not funded as of "&Date_String(N2)


:)

Skip,
Skip@TheOfficeExperts.com
 
KIS (keep it simple) ;-)

="not funded as of"&Text(N2,"mm/dd/yyyy") For the short date.

or

="not funded as of"&Text(N2,"mmmm d, yyyy") for the long date.

;-)







Peace! [peace]

Mike

Never say Never!!!
Nothing is impossible!!!
 
Thanks for all the possibilities, they all seem to work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top