I'm using it today IIS7 I found a problem about the time format when I was in school , When I was there ASP Use in now() As a function of time , The date is in “/” To separate , Rather than “-” To separate , I always make mistakes when I run the program , Later, after research, we finally found a solution .

    The operating system I use here is Winodws Vista Ultimate Service Pack 1, stay ASP Use in now() The result of the time function is as follows :

    2009/3/17 8:11:51

    And what I want is 2009-3-17 8:11:51, Don't know why IIS7 The time format should be / To distinguish between , If there are experts know, please leave a message , But in the end, I solved this problem by modifying the registry , The method is as follows :

    1、 Start → function → Input regedit, Open registry editor , Find... In turn HKEY_USERS\.DEFAULT\Control Panel\International

    2、 Find... In the window on the right sDate term , Change its value to -; And find sShortDate term , Change its value to yyyy-MM-dd,

    3、 Restart IIS, Start → function → Input iisreset( If it doesn't , Just turn it on IIS Manager , stop it , Restart )

solve IIS7、IIS7.5 More related articles on time format display in

  1. Jsp Develop custom tags , The custom label converts the string to the specified time format for display

    In this example The time in string format is converted to the specified time format . First step . Define a label handler class , Integration required javax.servlet.jsp.tagext.TagSupport, The code is as follows : import java. ...

  2. modify springfox-swagger Source code , send example The default time format in is “yyyy-MM-dd HH:mm:ss”

    modify swagger Source code , send example The default time format in is "yyyy-MM-dd HH:mm:ss" Preface To put it simply , stay swagger in , How can I aim at the following vo Medium java.util.D ...

  3. oracle The greater than sign in time format means greater than and equal to

    oracle The greater than sign in time format means greater than and equal to

  4. How to solve the time format and mysql Query problem of time format mismatch in table

    The time format from the front end is “2016-07-11 11:13:10”, And the corresponding fields in the data table `add_time` The format is “2016-7-11”, here sql Can't be used directly "where `add_time ...

  5. python In time format

    problem : adopt MySQLdb Inquire about datetime Field , And then it's displayed through the browser , The resulting format is :         'Thu, 19 Feb 2009 16:00:07 GMT'   (http The format presented ) ...

  6. solve Flink The time in the output log is later than the current time 8 It's a matter of two hours

    Flink Installed in the CentOS7 On , The default time is UTC Time , see Flink journal , It is found that the output time is later than the current time 8 Hours . By the following order , Adjust to Beijing time cp /usr/share/zoneinfo/Asia/S ...

  7. JAVA In time format (SimpleDateFormat) And number formats (DecimalFormat) Conversion details ( turn )

    Time format conversion SimpleDateFormat: // Define the format of the date SimpleDateFormat format =new SimpleDateFormat("yyMMdd"); ...

  8. Spring Time format annotation in @DateTimeFormat

    stay SpringMVC in Controller The method parameter in is Date Type when you want to limit the time format of the incoming request , Can pass @DateTimeFormat To specify the , But when the request input parameter does not match the specified format , Returns the 400 error . If in B ...

  9. On the page json Format display data

    In the page , Sometimes we need more than just showing the data , And with json Display data in the format of , For example, when the interface is displayed We need to show that This is the time , Mainly used <pre> label $.get(" ...

Random recommendation

  1. Spring Of Bean Basic concepts of

    Spring It's actually a large factory , and Spring In container Bean Is the product of the factory .Spring What products can containers produce , Depending on the configuration of the configuration file . For us , Use Spring Frame does two things : Development Bean. ...

  2. UNICODE And UTF8 and GBK The relationship between

    http://wenku.baidu.com/link?url=bheGEzfSjEx-QX-ciME5oKooKYE08_NJZ02l2kKFa7kVZJ4t8Ks2uSNByovgP2QL6btq ...

  3. BC#32 1002 hash

    Code reference kuangbin The great god , Worship First time hashmap And plug-ins , There seems to be a lot to learn Maintain prefixes and sum[i]=a[0]-a[1]+a[2]-a[3]+…+(-1)^i*a[i] Enumeration ends i, then ...

  4. linux percona-toolkit Installation

    percona-toolkit It's a set linux Toolset under , We need to use the  pt-query-digest Yes mysql Slow log query for analysis . 1. download http://www.percona.com/do ...

  5. 《 Write quality code 》CSS Part summary

    How to organize CSS Three tier structure :base+common+page Purpose of stratification : Reduce the amount of code : Easy for many people to develop and maintain 1.base layer At the bottom , Generally, the file is read-only , With a specific UI irrelevant , Provide : reset function . Because the browser is right ...

  6. 【 Adjacency table string Hash】【HDU1800】Flying to the Mars

    The question : Here you are. N A digital , With leading 0, Ask the number of numbers that appear most Ideas : Read in , Clear lead 0,Hash. Use adjacency table string Hash Here are a few points to note string, Don't memset, Otherwise, the address is gone , involves stl Things that are , Less ...

  7. 【 Reading notes 】iOS-iOS video

    Video multimedia files are mainly used to store video data information , The amount of video data is much larger than that of audio data files , And video coding and decoding algorithms are very complex , So the early computers were due to CPU Poor processing power , To use video decompression card hardware support , Video capture and compression also need hardware card . Press ...

  8. [daily][tcpdump][bpf] How to use tcpdump I caught a piece package

    tcpdump -r web_185.pcap "ip[6:2] & 0x1fff != 0" tcpdump -r web_185.pcap "ip[6:2] ...

  9. Linux Use NFS Services realize remote sharing

    First installation apt install -y nfs-kernel-server nfs-common Edit profile vim /etc/exports Add content : /root/test *(rw,sync, ...

  10. Python in bisect Use

    stay <Think Python> In the exercises in Chapter 10 of , It's about half search bisect modular . So , On the Internet Python in bisect Module related content . There are several links that are relatively authoritative and clear : 1> ht ...