Answers for "excel date to string conversion"


excel date to string conversion

'Excel formula to turn a date/time into text:

=TEXT(A1,"DD/MM/YYYY hh:mm:ss AM/PM")



'VBA function to do the same thing:
Function DateToText$(dbl#)
    DateToText = Format(dbl, "DD/MM/YYYY hh:mm:ss AM/PM")
End Function
Posted by: Guest on March-30-2020

Code answers related to "excel date to string conversion"

Code answers related to "VBA"

Browse Popular Code Answers by Language