I need to calculate the difference (in hours) between two dates, I know I can use the datediff function but I think both fields should be in exactly the same format. {field1} is a string and has the following format: "yymmddhhmm" and {field2} is a datetime: #yyyy, mm, dd, hh, mm, ss#
Am I right that both fields should be exactly in the same format for the datediff function to work? and if so, how should I convert {field1}?
Thank you all.
Am I right that both fields should be exactly in the same format for the datediff function to work? and if so, how should I convert {field1}?
Thank you all.