Lacks any Time Zone Indicator :but PRPC DateTimes need this; the help says (my emphasis):
When presented with a DateTime value, a corresponding date and a time-of-day (in a specified time zone) can be determined.
However, the converse is not usually true: when starting with a Date and a TimeofDay value, multiple differing but "correct" DateTime values can be constructed, depending on assumptions about time zone, Daylight Savings Time, and other considerations. For example, when the date is January 1 in London, it can be December 31 in New York.
Likewise, when comparing two values, or computing with dates, times, and DateTime values, context is important. A time of 6:15 P.M. in London is earlier, not later, than 6:16 P.M. in New York.
If your particular Application doesn't really mean something like "The 27th of April, 2016 at 4pm as viewed on a clock in a particular timezone", but rather means something like "Just 4pm on that day": consider using a PRPC Date Property in conjunction with a PRPC TimeofDay Property; leaving the assumptions about which Timezone (if any) was meant down to the intepreration of the humans, rather than the machines having to guess (probably wrongly) what timezone was intended.
The actual use case behind converting date is in our application we are collecting date in a date variable and time in a string variable.
Now we would like to store the date & time in a single variable by combining the collected date and time data. I've used substring functions cut the string before T in date 20130806T061841.958 GMT and then tried to append time which is in 07:10 format in a string variable.
Now finally my date time variable has the data as 20130806T071000.000 GMT
Now, the issue i'm facing is when i use a datetime control to display this value its showing 4 hours before the time with EDT as the timezone. Not sure from where EDT timezone is picked. Any thoughts?
If you are using the property the values you passed to DateTime control, through UI is shown from the local timezone where as when it stores the data as the record it stores with the time as to where the server is been set, in other words values stores with the current server time.
There has been some issues also with datetime conversion to show excat result, what is the prpc you are runnig at. Its always better to use datetime property then to perform and manuplication by using funcation, if you only want date u can use Date property for that.