Workflow Soluiton

 View Only
  • 1.  Get Current Time

    Posted Apr 21, 2011 01:24 PM

    I've seen this done before, but its been a while. I'd like to parse the current time from the "Get Current Date" component. Also, if there is a more straight forward way to get the current time, i'd love to hear it.



  • 2.  RE: Get Current Time

    Posted Apr 21, 2011 03:53 PM

    You could use a Split Text Into Collection comp and split on a space... that way element 1 is the date, and element 2 is the time.

     

    actually, this isn't working for me... oh well, I'll find something



  • 3.  RE: Get Current Time
    Best Answer

    Posted Apr 21, 2011 04:03 PM

    You could use either an "Output Short Time String" or "Output Long Time String" component. The Long time format will be 'hh:mm:ss tt' and Short time format will be 'hh:mm tt'.



  • 4.  RE: Get Current Time

    Posted Apr 21, 2011 04:48 PM

    Matzebru,

    That gives me what I need. I used the Short time string and used it with a matches rule. Match=Project will run, NoMatch=Project doesn't run.

    Thanks to both of you.



  • 5.  RE: Get Current Time

    Posted Apr 21, 2011 04:50 PM

    Yeah, that was one of the first things i tried :)



  • 6.  RE: Get Current Time

    Posted Apr 21, 2011 06:53 PM

    A follow up to my way, I had to use a Convert To Text (ToString) comp between the Get Current Date and Split Text Into Collection. Then the split starts working with <date> <time> <am/pm> as the elements of the array.

    I prefer the other way better, though :)