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


  • Hi

    You can get help from above guide..

  • This is the more general macro programming guide:

    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?


Was this helpful?