Zum Hauptinhalt gehen

Date/Time not formatting in HTML5

Kommentare

4 Kommentare

  • Permanently deleted user

    Hi James,

    How did you get to those results?  From a Query Task in a workflow?

    The Query Task will return results as their native data types, whereas an identify task will return results as formatted strings.  The Silverlight API is presently better at handling native data types and formatting them as a string - looks like the Javascript API is giving you a "seconds after the epoch" date value (not very useful to anyone but a computer)

    Regards,

    -Malcolm

    0
  • Permanently deleted user

    Hi Malcolm,

    Yes, it is in a workflow, but rather an assigmnment:

    Date.Now.ToUniversalTime TO serviceFeatureSet.Features(0).Attributes(RequestDateFieldName)

    This is taken directly from the GTX sample "CitizenServiceRequestDemo"

     

    Thanks,

    James

    0
  • Permanently deleted user

    I'm just trying to figure out where to place the js to convert this back to a string date/time - the function is available in js, just need to work it into .js I think...Any suggestions?

    0
  • Permanently deleted user

    I'm having this same issue with HTML5 and calling a date in a display form, did you ever get resolved? 

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.