BLHTML.org

BLHTML.org / Web Programming / BLHTML / BLHTML Manual / BLHTML funktion list / BLHTML funktion list /

 
  GETDATE 3790 0
#GETDATE# is an independent function
Rights to use this function #GETDATE#:
  • BASIC

  • #GETDATE# returnerar datum

    values:  defaults:  description:
    typetype=U Seconds since the Unix Epand (January 1 1970 00:00:00 GMT)
    formatday180717
    min1807171906
    yearAdderar on/ of år
    mounthAdderar månader on/av
    dayAdderar days on/av
    countRäkna amount days from #GETDATE# datum to count=YYYYMMDD
    returnreturn=variable stores the results in $variable

    Example:
    Today: #GETDATE#<br>
    Yesterday: #GETDATE day=-1#<br>
    Tomorrow: #GETDATE day=1#<br><br>

    +1 year: #GETDATE year=1#<br>
    +1 mounth: #GETDATE mounth=1#<br>
    +1: week: #GETDATE day=7#<br><br>

    +1 year +1 mounth +7 day: #GETDATE year=1 mounth=1 day=7#

    Returns:
    Today: 180717
    Yesterday: 180716
    Tomorrow: 180718

    +1 year: 190717
    +1 mounth: 180817
    +1: week: 180724

    +1 year +1 mounth +7 day: 190824

    Example: Räkna days
    #$date=20190318#
    #GETDATE count=$date return=end_date#

    Account end in #$end_date# days!

    Returns:
    Account end in 244 days!

    Formatera #GETDATE#:
    #WHEN value(#GETDATE year=1#) space=- type=date blhtml=on#

    Returns:
    2019-07-17

    Output min:
    #GETDATE type=U format=min value(#DATE value=U#) blhtml=on#
    Returns:
    1807171906

    More information:
  • #DATE#
  • #WHEN#
  • BLHTML forum  


    apache MySQL PHP No to software patents! BLHTML
    © 2003, 2010 BLHTML
    This page is created with BLHTML in 0.0667 seconds