Is it possible to return an int from a datetime function? - page 2

 
Arpit T #: thanks using global variable is great idea

You are welcome!