Estas indicaciones utilizan datos de ejemplo de las horas de salida de un autobús, donde la marca de tiempo de 24 horas se guarda en un campo numérico, como 835 para las 8:35. Es posible que no necesite todos los siguientes pasos si su marca de tiempo de 24 horas ya es un campo de cadena (también llamado de texto) que empiece por cero.
DATEPARSE("hmm",[Scheduled Departure Time])
//if the data contains a leading zero then use "hhmm" instead of "hmm"
DATETIME( "1/1/1900 " //arbitrary date + IF LEN([Scheduled Departure Time]) = 3 THEN "0" ELSE "" END //add a leading zero if the timestamp is only 3 characters long + [Scheduled Departure Time] )
001458087
33 KB

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.