Using the "date picker"

Good morning,
I can’t use the “date picker” …

I tried this script but it doesn’t work:


        set Ora to Orario's stringValue() as strings
        set OraOre to hours of (Ora) 
        set OraMinuti to minutes of (Ora) 
        set stringValue of Campo to (OraOre & " : " & OraMinuti)

How can I do?

Paolo

Model: MacBook Pro
AppleScript: 2.4.3
Browser: Safari 534.57.2
Operating System: Mac OS X (10.7)

If you download my Myriad Helpers, it has a category that adds a method dateAS() to the date picker, which returns an AppleScript date. That might be an easier approach.