ASP 获取上月本月下月的第一天和最后一天

上月第一天:

<%=dateadd("m",-1,year(date)&"-"&month(date)&"-1")%>

上月最后一天:

<%=dateadd("d",-1,year(date)&"-"&month(date)&"-1")%>

本月第一天:

<%=year(date)&"-"&month(date)&"-1"%>

本月最后一天:

<%=dateadd("d",-1,dateadd("m",1,year(date)&"-"&month(date)&"-1"))%>

下月第一天:

<%=dateadd("m",1,year(date)&"-"&month(date)&"-01")%>

下月最后一天:

<%=dateadd("d",-1,dateadd("m",2,year(date)&"-"&month(date)&"-01"))%>

10 条评论

  1. reviewer
    minecraft
    2018年9月5日

    Today, I went to the beachfront with my children. I found a
    sea shell and gave it to my 4 year old daughter and said "You can hear the ocean if you put this to your ear." She put the shell to
    her ear and screamed. There was a hermit crab inside and it pinched her ear.
    She never wants to go back! LoL I know this is entirely off topic but I had to tell someone!

    回复
  2. reviewer
    minecraft
    2018年9月5日

    Excellent post. I was checking constantly this blog and I'm impressed!
    Very helpful info specially the last part 🙂 I care for such information a lot.
    I was seeking this certain info for a very long time.
    Thank you and best of luck.

    回复
  3. reviewer
    minecraft
    2018年9月5日

    Wonderful beat ! I wish to apprentice while you amend your
    website, how could i subscribe for a blog site? The
    account aided me a applicable deal. I had been a little bit familiar
    of this your broadcast provided brilliant
    clear idea

    回复
  4. reviewer
    minecraft
    2018年9月4日

    Great work! This is the kind of information that should be shared across the internet.
    Shame on Google for now not positioning this put up higher!

    Come on over and talk over with my website . Thanks =)

    回复
  5. reviewer
    minecraft
    2018年9月4日

    Thank you, I've just been searching for information about this topic for a while and yours is the greatest I have found out till now.
    However, what in regards to the conclusion? Are you sure concerning the supply?

    回复
  6. reviewer
    minecraft
    2018年9月4日

    First off I would like to say excellent blog! I had a quick question that I'd like
    to ask if you don't mind. I was curious to find out how you center yourself and clear your mind
    prior to writing. I've had trouble clearing my thoughts in getting
    my thoughts out. I do take pleasure in writing however it just seems like the first
    10 to 15 minutes tend to be wasted just trying to figure out
    how to begin. Any recommendations or tips? Kudos!

    回复
  7. reviewer
    minecraft
    2018年9月4日

    Link exchange is nothing else but it is just placing the other person's web site link on your page at proper place and
    other person will also do same for you.

    回复
  8. reviewer
    minecraft
    2018年9月4日

    I love reading a post that will make men and women think.

    Also, thank you for permitting me to comment!

    回复
  9. reviewer
    Eriksentrust
    2017年3月15日

    Tem na verdade um grande e útil pedaço de informação .

    Eu sou feliz que você compartilhado isto útil informação conosco.
    Por favor permanecer nos informado como este.
    Obrigado para partilha.

    回复
  10. reviewer
    restaurants oceanside
    2017年3月15日

    Its like you read my mind! You appear to grasp a lot
    approximately this, like you wrote the guide in it or something.
    I feel that you just can do with some p.c. to force the message home a little bit, however other than that, that is wonderful blog.
    An excellent read. I will definitely be back.

    回复

Eriksentrust进行回复 取消回复

您的电子邮箱地址不会被公开。