

Creator II
2018-02-05
07:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Convert string into time?
How can convert a string into a timestamp (hh:mm)?
e.g.:
1531 into 15:31
0805 into 08:05
This code doesn't seem to work:
Time(Time#([String], 'hh:mm') ) AS [StringHour],
After that, how would I combine it with a date to create a date/time column?
Thanks in advance
5,273 Views
1 Solution
Accepted Solutions


Master II
2018-02-05
07:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Time(Time#([String], 'hhmm') ,'hh:mm') AS [StringHour],
Learning never stops.
3 Replies


Master II
2018-02-05
07:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Time(Time#([String], 'hhmm') ,'hh:mm') AS [StringHour],
Learning never stops.


Master II
2018-02-05
07:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
for the second part something like this
timestamp(timestamp#(date_field & [StringHour],'DD/MM/YYYYhh:mm')) as date_time
here DD/MM/YYYY I have assumed as date format.
Learning never stops.

MVP
2018-02-05
07:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For second part, this is also possible
TimeStamp(DateField + Time(Time#([String], 'hhmm') ,'hh:mm')) as date_time_field
