How to set a specific time into a variable?

I have two datetime variables, %StartTime% and %EndTime%
I intend to set them as
%StartTime% = [Yesterday] 12:30 AM
%EndTime% = [Today] 1:30 AM

To use "Get DateTime" action, I can get [Today] and [Yesterday]. But I am no idea how to attach "12:30 AM" to it.
 

 

Thanks in advance.

 

Hi

The easiest way to do this would be via a simple script. This should do what you are looking for:

VBScript
[code]dim timeStartdim timeEndtimeStart = DateAdd("d", -1, Date())timeEnd = Date()timeStart = timeStart + TimeSerial(0,30,0)timeEnd = timeEnd + TimeSerial(1,30,0)StartTime = timeStartEndTime = timeEnd[/code]

Hope this helps.

Regards,
Steve

Actually it is possible with the GetDateTime action, set the DateTime Format field to (adjust to suite) : dd/mm/yyyy 12:30p"m"

Note the double quotes around the m so that it is treated as a literal character and not a format char.