Promotic
WikipediaLinkedInYoutubeTwitterFacebook

ScanDate - method of object Pm

Description:
Getting the date and time from text value (sDate) according to the formatting rule (vFormat).
Syntax:
ScanDate(sDate As String, vFormat As Variant) As Date
Calling:
t = Pm.ScanDate(sDate, vFormat)
Parameters:
sDate(String) Variable of the String type (date and time)
vFormat(Variant) Type of the pre-defined conversion of the date and time into the Date type. Only one option can be set so far:
1 - The internal way of the date and time storing in the PROMOTIC system is in the form of 2016.10.11 15:23:28.082.
Note:
This method is not so far functional for Web Panels.
Example:
Dim sDate, tDate
sDate = "2016.10.11 15:23:28.082"
tDate = Pm.ScanDate(sDate, 1)
  'in tDate is the value of the Date data type read from the sDate string
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- LN2
- PI
- Pow
- ScanDate
 
 
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice