Create a Date with a set timezone without using a string representation

前端 未结 23 1469
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-22 01:48

I have a web page with three dropdowns for day, month and year. If I use the JavaScript Date constructor that takes numbers, then I get a Date obje

23条回答
  •  野性不改
    2020-11-22 02:01

    Best Solution I have seen from this came from

    http://www.codingforums.com/archive/index.php/t-19663.html

    Print Time Function

    
    
    Banff, Canada:
    
    

    Full Code Example

    
    
    
    
    
    
    
    
    Banff, Canada:
    
    
    Michigan:
    Greenwich, England(UTC):
    Tokyo, Japan:
    Berlin, Germany:

提交回复
热议问题