Hello; the code was taken from a web site for Application "FileMaker Pro" and it is used from a script and was working good. The script is two lines and I want to add the picture of the complete method but could not. Tell me how to attached a photo.
"http://api.aladhan.com/v1/hToG?date="
&
SerialIncrement ( "00" ; Tree::HijriDay )
&
SerialIncrement ( "-00" ; Tree::HijriMonth )
&
SerialIncrement ( "-0000" ; Tree::HijriYear )
Let ( [
gregorian = JSONGetElement ( $response ; "data.gregorian" ) ;
d = JSONGetElement ( gregorian ; "day" ) ;
m = JSONGetElement ( gregorian ; "month.number" ) ;
y = JSONGetElement ( gregorian ; "year" )
] ;
Date ( m ; d ; y )
)