robjones23
Registered User.
- Local time
- Today, 08:05
- Joined
- Dec 16, 2004
- Messages
- 66
Hi,
I have another database with "Sent Date / Time" column which contains date / time in the format "yyyy-mm-dd hh:mm:ss.sss". I need to run a query on the "Sent Date / Time" field to output yyyy-mm-dd hh:mm but in groups of two minutes. for example:
Sent Date / Time 2 minute date / time
2005-01-03 00:00:01.117 2005-01-03 00:00
2005-01-03 00:00:04.432 2005-01-03 00:00
2005-01-03 00:01:08.456 2005-01-03 00:00
2005-01-03 00:01:19.458 2005-01-03 00:00
2005-01-03 00:01:28.117 2005-01-03 00:00
2005-01-03 00:02:02.597 2005-01-03 00:02
2005-01-03 00:02:02.597 2005-01-03 00:02
2005-01-03 00:03:34.597 2005-01-03 00:02
2005-01-03 00:03:54.597 2005-01-03 00:02
2005-01-03 00:04:02.597 2005-01-03 00:04
Should look like the above. Any ideas? previously when I needed to just have the hour, i used
Date/Hour: Left([Sent Date / Time],9)+Mid([Sent Date / Time],10,4)+":00"
This output "yyyy-mm-dd hh:00" but i can't use this formula as the minutes need to be in 2 minute gaps......
Any ideas??
Thanks,
Rob.
I have another database with "Sent Date / Time" column which contains date / time in the format "yyyy-mm-dd hh:mm:ss.sss". I need to run a query on the "Sent Date / Time" field to output yyyy-mm-dd hh:mm but in groups of two minutes. for example:
Sent Date / Time 2 minute date / time
2005-01-03 00:00:01.117 2005-01-03 00:00
2005-01-03 00:00:04.432 2005-01-03 00:00
2005-01-03 00:01:08.456 2005-01-03 00:00
2005-01-03 00:01:19.458 2005-01-03 00:00
2005-01-03 00:01:28.117 2005-01-03 00:00
2005-01-03 00:02:02.597 2005-01-03 00:02
2005-01-03 00:02:02.597 2005-01-03 00:02
2005-01-03 00:03:34.597 2005-01-03 00:02
2005-01-03 00:03:54.597 2005-01-03 00:02
2005-01-03 00:04:02.597 2005-01-03 00:04
Should look like the above. Any ideas? previously when I needed to just have the hour, i used
Date/Hour: Left([Sent Date / Time],9)+Mid([Sent Date / Time],10,4)+":00"
This output "yyyy-mm-dd hh:00" but i can't use this formula as the minutes need to be in 2 minute gaps......
Any ideas??
Thanks,
Rob.