Want to get rid of Google Ads, click here.
+ Reply to Thread
Results 1 to 3 of 3

Thread: Storing string values in date time field

  1. #1
    Junior Member
    Join Date
    Nov 2006
    Posts
    20

    Unhappy Storing string values in date time field

    Greetings !
    I am creating a new schedule in javascript and want to set the repeat time of the schedule to "1 00:00:00" to make it repeat every day.
    schedule.repeat="1 00:00:00" errors compaining that cannot store string in a DateTime field.
    schedule.repeat=new Date() works but puts the current date and time...
    how can i make it take the above string ?

    Can anyone post other examples of date manipulation/storing if they have.
    regards
    -machoq

  2. #2
    Member
    Join Date
    Feb 2002
    Location
    Phoenix, AZ
    Posts
    34

    Default

    Try using the toSCDuration() method. You can read more about it in the online help.

    Let us know if this worked.

    Jeff

    Quote Originally Posted by sraizada View Post
    Greetings !
    I am creating a new schedule in javascript and want to set the repeat time of the schedule to "1 00:00:00" to make it repeat every day.
    schedule.repeat="1 00:00:00" errors compaining that cannot store string in a DateTime field.
    schedule.repeat=new Date() works but puts the current date and time...
    how can i make it take the above string ?

    Can anyone post other examples of date manipulation/storing if they have.
    regards
    -machoq

  3. #3
    Senior Member tuncay's Avatar
    Join Date
    Jul 2004
    Location
    Germany
    Posts
    113

    Default

    try system.functions.val(<string>,<type>)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts