Aug 8, 2005 #1 effennel Technical User Oct 15, 2002 60 CA I have a variable using the datetime format "0000-00-00 00:00:00" How do I proceed to determine if the hour is between 10:00:00 and 15:59:59? Thanks FnL
I have a variable using the datetime format "0000-00-00 00:00:00" How do I proceed to determine if the hour is between 10:00:00 and 15:59:59? Thanks FnL
Aug 9, 2005 #2 sleipnir214 Programmer May 6, 2002 15,350 US I would split the date string at the space using explode(), which will give me a date-part and a time-part in an array. Since the tim-part is very regular, time order is the same a alphabetical order, so a simple string comparisons should work. I'd just use "<" and ">", Want the best answers? Ask the best questions! TANSTAAFL!! Upvote 0 Downvote
I would split the date string at the space using explode(), which will give me a date-part and a time-part in an array. Since the tim-part is very regular, time order is the same a alphabetical order, so a simple string comparisons should work. I'd just use "<" and ">", Want the best answers? Ask the best questions! TANSTAAFL!!