get-listener is processed only if the data class c...
# suitescript
b
get-listener is processed only if the data class contains all parameters? Can not specify only part of the sent in the request?
Copy code
routing {
      get<MyResult> { myResult -> ... }
myResult contains only two fields, although the call contains 4 parameters
d
Hi All, is anyone know how to change date format from dd/mm/yyyy to mm/dd/yyyy in scheduled script? Thanks in advance.
s
You can use a native javascript !
n
var dd = unformattedDate.day; var mm = unformattedDate.month; var yyyy = unformattedDate.year; var setDate = mm + '/' + dd + '/' + yyyy; //Date format for inserting into record Where unformattedDate is your date in dd/mm/yyyy format or any other format. You can also use split instead of .day, .month & .year