Command: TTD
- Updated2023-02-21
- 2 minute(s) read
Command: TTD
Converts a text from a time format into a VBS date: A VBS date is a Variant type with the subtype Date. VBS processes data in the range of 01/01/100 to 31/12/9999 23:59:59.
Input Parameters
DateTimeString |
Specifies a text or a variable that contains the date in DIAdem time format. The text must not contain written or abbreviated weekdays, months, or calendar weeks. If the day or month is single-digit, it must contain leading zeros, for example, 01/01/2015. |
[DateTimeFormat] |
Specifies the time format for the text according to the format instructions. If you do not specify a time format, DIAdem applies the default format specified under Settings»DIAdem Settings. |
Return Parameters
| ReturnValue | Return value VBS date which is a Variant type with the subtype Date. |
Example
The following example displays on what weekday DIAdem last saved the report file Example.tdr. The FileDateGet function returns the specified point in time as text in the time format dd.mm.yyyy hh:nn:ss.
| VBScript | Python |
Dim strMyResult, MyDate strMyResult = FileDateGet(LayoutLibrPath & "Example.tdr","fdModify") MyDate = TTD(strMyResult) Call MsgBoxDisp(WeekDayName(Weekday(MyDate)))
Related Functions
Command: ChnConvertNumericToTime | Command: ChnConvertTimeToNumeric | Command: ConvertTimeType | Function: RTP (Real To Part of Date) | Function: RTT (Real to Text) | Function: TTR (Text to Real)

