LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  String to timestamp

    Employee
    Posted 09-09-2015 16:01

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: sozdemir

    Hello LavaStorm experts,

    Can you show me how to convert the below string to a time stamp?

    "2015-05-15 08:26:39"

    Any help is much appreciated.

    Thank you.


  • 2.  RE: String to timestamp

    Employee
    Posted 09-22-2015 02:55

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Wizardous

    Hi,
    You can use brainscript below, till better solution send here.


    bol=FIELDFORCONVERT.split(" ")
    tarih=bol.getItem(0).date("CCYY-MM-DD")
    zaman=bol.getItem(1).time("hh:mm:ss")
    
    
    emit timestamp(tarih,zaman) as tarihzaman
    Regards,

    �zg�n