Hi I want to convert time to 24 hours and post the time in another WebEdit field. Although I had successfully get the value of time and subtract an hour from it which I want to but now I am unable to convert the time to 24 hours. Because after subtracting an hour or two the format of time is changed to 12 hours from 24 hours.
Please find the code below:
'Getting value from WebEdit
cur = brower("").Page("").WebEdit("").GetROProperty("val ue")
'Subtracting number of hours which I want to:
curTime = DateAdd("h", -1, cur)
//here the format of time is changed from 24 hours to 12 hours
//UNable to set correct time
Please tell me the correct way if you know how I can convert time to 24 hours format
Hey Ganesh, Thanks a lot its working now [img]/images/graemlins/smile.gif[/img] BTW can you please tell me that what's the functionality of "4" using in FormatDateTime [img]/images/graemlins/smile.gif[/img]?