![]() ![]() Simple instructions and examples or possible solutions will be greatly appreciated. I am expected to expand the program further but was trying to get this small part to work before trying the other components. ReturnUTC indicates if the TDateTime value should be adjusted to reflect the UTC (Coordinated Universal Time) time zone. DateString contains the date/time value expressed using ISO 8601 notation. The first, date part of the string must adhere to the format of the ShortDateFormat value, and use the DateSeparator character to separate the day, month and year values. ISO8601ToDate is a function used to convert a string using ISO 8601 date/time notation to a native TDateTime type. The program's basic structure can be seen here: The StrToDateTime function attempts to convert a date plus time as a string DateTime into a TDateTime value. I started with this code to try to convert the first date entered in string format to a date that can be used in a calulation: program TryDate You can read off the hexadecimal integer or if you want a BIGINT. I am much of a new bee to Pascal programming I have spent the entire day trying to convert a string to a valid date that I can later use to subtract another date from to discover the number of days between the two dates. 15 Answers Sorted by: 293 SQL Server's TIMESTAMP datatype has nothing to do with a date and time It's just a hexadecimal representation of a consecutive 8 byte integer - it's only good for making sure a row hasn't change since it's been read. Declaration: Function DateTimeToTimeStamp(DateTime: TDateTime): TTimeStamp Description: DateTimeToSystemTime converts a date/time pair. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |