Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi. I need to extract a month and time out of a timestamp that i have which looks like this;
| Start Time |
| 01/10/2009 08:00:00 - 08:30:00 |
| 01/10/2009 08:30:00 - 09:00:00 |
and it carries on until 20:00:00, i have tried Month([Start Time]) as Month but this does not work. is there a way to extract the month and the half hour in seperate list boxes?
Thanks
Graham
Hello Graham,
Try
Month(timestamp#([Start Time],'DD/MM/YYYY hh:mm:ss - hh:mm:ss'))
I'm sorry I forget in the previous reply, but how do you want to use the half hour period? You may use
to get that part of the timestamp, even using function timestamp# as previous. Are you going to calculate later with the half hours?Mid([Start Time],Index([Start Time],' ',1),Len([Start Time]))
Not quite clear, what do you wish to see as result:
is there a way to extract the month and the half hour in seperate list boxes?
Do you wish to see for all the 24*31 entries only October and 00 resp. 30?
Peter
That works perfectly, i only need the half hour as a dimension.
One more quick question, this is a simple one i am sure. How can i display day names, up to now i have only used day numbers, in this chart i would like to use day names.
Thanks for your help.
Graham
To get the day name (monday, tuesday, etc...) use
=Capitalize(Date(timestamp#([Start Time],'DD/MM/YYYY hh:mm:ss - hh:mm:ss'),'WWWW'))
In the example above, 'WWWW' will give you "Monday", 'WWW' will give you "Mon". Use or don't Capitalize() to get first letter in Uppercase.