Need to display current_date and time on Text Widget

Comments

3 comments

  • Avatar
    Nathan Giusti

    You'll have to add a widget script to the text widget that pulls in the current date and time via javascript

     

    Something like

     

     
    var today = new Date();
    var date = today.getFullYear()+'-'+(today.getMonth()+1)+'-'+today.getDate() + today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds();
    0
    Comment actions Permalink
  • Avatar
    Vinod Komarajapeta

    Thanks Nathan.

    0
    Comment actions Permalink
  • Avatar
    Anu Marichamy

    Hi

    i need to get the data of current week. can any one please help me to achieve this? i tried using the following query. but it is not working

    Select * From Acb Where WorkDate BETWEEN DATEADD(DAY, -7, GETDATE()) AND DATEADD(DAY, 1, GETDATE())

     

    Thanks,

    Anu

    0
    Comment actions Permalink

Please sign in to leave a comment.