Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8623

Re: WebI convert String including timezone information to Date as input to FormatDate

$
0
0

If you want to subtract 7 hours from the date as your input string says, use RelativeDate function as below:

 

=FormatDate(RelativeDate(ToDate(left(Trim([Input String]);19);"yyyy-MM-dd HH:mm:ss");-7/24);"yyyy-MM-dd HH:mm:ss")

 

If the number of hours to be added/subtracted varies, then you need to separate that part from the input string using substr function and form the factor to be added or subtracted in relativedate function.


Viewing all articles
Browse latest Browse all 8623

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>