BLHTML.org

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

 
  GETDATE 3862 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)
    formatday180919
    min1809191433
    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: 180919
    Yesterday: 180918
    Tomorrow: 180920

    +1 year: 190919
    +1 mounth: 181019
    +1: week: 180926

    +1 year +1 mounth +7 day: 191026

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

    Account end in #$end_date# days!

    Returns:
    Account end in 243 days!

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

    Returns:
    2019-09-19

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

    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.0810 seconds