I'm trying to subtract a certain amount of seconds from a date for usage elsewhere. However, I need it to be 24hr format. Here is the function I have:
Function getDateTime(df) 'timediff
getDateTime = DateAdd("S",0 - df,Now)
End Function
It needs to be in the format of 10/5/2015 13:58:32
instead of 10/5/2015 1:58:32 PM
Is there an easy way to convert this or do I need to do string evaluation and manipulation? (if hrs > 12 { etc... })