Converting the format of dateTime

Dear Community

I am writing a macro for Chemstation. For my outputfile, I would like to change the format of the Injection times and dates from ObjHdrtext$(Chromres, datetime) in a similar way as it is possible with date$([Mode], [TimeValue], [FormatString]). Is that possible as well?

Alternatively, I clipped the date from datetime and made a new string variable. Is it possible to convert the type from string to a date, so that I can change the format according to date$([Mode], [TimeValue], [FormatString])?

Thank you for your help

DOT

  • This is the more general macro programming guide: https://www.agilent.com/cs/library/usermanuals/Public/MACROS.PDF

    Dates appear to be stored as strings, so maybe some fancy string manipulation could be used to get the date in the format you need?

    /Andy

Was this helpful?